Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve savestate error handling #89

Open
aaaaalbert opened this issue Apr 13, 2015 · 0 comments
Open

Improve savestate error handling #89

aaaaalbert opened this issue Apr 13, 2015 · 0 comments

Comments

@aaaaalbert
Copy link
Contributor

Shell log from seash build a097c95.

First problem: You cannot savestate before having loaded at least a pubkey, and work as that identity. The error message should indicate that (and not a coding error).

$ python seash.py
Enabled modules:  

 !> savestate NO_KEYS_LOADED
Error saving state: 'cannot concatenate 'str' and 'NoneType' objects'.
 !>

Problem 2: The error message is unspecific when using savestate to a write-protected file. (Similar issues might exist for other seash commands using write.)

$ touch write_protected_file
$ chmod a-w write_protected_file
$ python seash.py
Enabled modules:  

 !> loadkeys some_id
 !> as some_id 
some_id@ !> savestate write_protected_file 
Error saving state: 'local variable 'state_obj' referenced before assignment'.
some_id@ !> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant