summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2016-08-02 21:30:40 +0300
committerSaku Ytti <saku@ytti.fi>2016-08-02 21:30:40 +0300
commit642aad19ba1d06ec4c8e9e51ebf46573d2d2110f (patch)
tree7e41e541e3bdff3fd2b910ae3372ac74cc4f61df /bin
parent71dc657b8c01dbcf8d15bfb65ad0a4d57fcd74f7 (diff)
Fix raising traceback which happen before config
closes #518
Diffstat (limited to 'bin')
-rwxr-xr-xbin/oxidized3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/oxidized b/bin/oxidized
index 2695a52..7a0b03d 100755
--- a/bin/oxidized
+++ b/bin/oxidized
@@ -9,5 +9,6 @@ begin
Oxidized::CLI.new.run
rescue => error
warn "#{error}"
- raise if Oxidized.config.debug
+ debug = Oxidied.config.debug rescue true
+ raise if debug
end