jfilby / nexus

A Nim web framework with batteries included
Apache License 2.0
101 stars 3 forks source link

Add a switch to the nexus program to raise exceptions on errors #7

Open jfilby opened 2 years ago

jfilby commented 2 years ago

Right now the code sometimes shows error messages and quits, and sometimes raises an exception with the same information and a stacktrace.

By default only the stdout errors should be shown. When a -e or --exceptions-on-errors switch is passed to the nexus program, then an exception should be raised instead of quit(1). This displays a stacktrace that could be useful when debugging issues.