Throw error when e vspace does not exist #5
Loading…
Reference in New Issue
No description provided.
Delete Branch "Dr-Carlos/fxos:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello!
In this commit I have fixed the vspace parameter (I didn't realise I needed to run
parser.accept_options()
), and e will now throw an error if the vspace passed in does not exist.Thanks! This works well. However you shouldn't throw an error; to be honest exceptions have screwed me over in the past and I'm getting rid of them in fxos as much as possible. For instance right now if you try to autocomplete after
e vspace=whatever
, fxos crashes.The parser being used for autocompletion means that you can't throw, only print. Also since I don't have value categories for options, this actually disables autocompletion of vspace names, which is unfortunate.
However, you have also fixed symbols being autocompleted from the wrong vspace, which is really cool!
7ae47d6523
to789fc3325c
I have changed the throw to a FxOS_log at ERR level.
Great, I'll merge this and tune the parser a little bit afterwards.