-
Notifications
You must be signed in to change notification settings - Fork 252
Description
Description
If there is an unrecoverable error while trying to load a character, the message
Failed to log in to your character. Please contact an administrator.
is displayed. This can be reproduced by creating a new character then deleting the .json file for the player character but keeping all account data.
Expected outcome
I would expect to either have the link disconnected after this message, or (preferably) be returned to the account menu.
Actual outcome
Instead, it is impossible to cmd+C
to close the session, I am not returned to the menu, and my session/terminal instance has to be force-quit.
Steps to reproduce
This can be reproduced by creating a new character then deleting the .json file for the player character but keeping all account data.
Then, try to log into that character.
Your Ranvier server should display an error message such as
2018-05-02T05:07:39.278Z - warn: Error: File [/Users/seanohue/myProjects/ranviermud/src/../data/player/Hamhamham.json] does not exist!
at Function.parseFile (/Users/seanohue/myProjects/ranviermud/src/Data.js:20:13)
at Function.load (/Users/seanohue/myProjects/ranviermud/src/Data.js:78:17)
at PlayerManager.loadPlayer (/Users/seanohue/myProjects/ranviermud/src/PlayerManager.js:89:23)
at handleMultiplaying.then (/Users/seanohue/myProjects/ranviermud/bundles/myelin-input-events/input-events/choose-character.js:65:54)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Version of Ranvier
2.0.0