Util.pm: improve noFatalsToBrowser
commit575869a93f57fec518fc6f91b9e72c11ca01847f
authorKyle J. McKay <mackyle@gmail.com>
Sat, 29 Oct 2016 11:33:28 +0000 (29 04:33 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 29 Oct 2016 11:33:28 +0000 (29 04:33 -0700)
tree673d403f3a533d1ef5ef620d8a097e026710f145
parent434d552f1bf15d14e31f588de5419ad83849cac7
Util.pm: improve noFatalsToBrowser

The noFatalsToBrowser function attempts to undo the action
of `use CGI::Carp qw(fatalsToBrowser)`.

Improve on its behavior by omitting the location when the
warn/die message ends with a \n (just like warn and die
normally behave) and by exiting with the same error code.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Util.pm