lehitoskin/ivy

Commandline invokations should fully exit with a non-zero status, on unrecoverable errors

Closed this issue · 3 comments

Currently, if something you do causes an exception to be thrown during a commandline invokation, e.g. giving ivy a bad path, it will print the exception and maybe a stack trace, and then just hang there until you hit C-c.

Instead it should fully exit, with non-zero status.

I believe this will be fixed basically for free when #69 is fixed.

There are a number of calls to (exit:exit) (from framework and specified in full in frame.rkt), which will probably be of interest to us.

That is, I think we can change some of them to (exit:on-exit) and then run (exit -1) (or whatever number), to show that we're exiting under an error status.

In-progress solution in PR #117. Please comment there.