WPSTools : Do not output the backtrace of the main script
This commit is contained in:
@@ -32,7 +32,11 @@ begin
|
|||||||
exit(0)
|
exit(0)
|
||||||
rescue => e
|
rescue => e
|
||||||
puts "[ERROR] #{e.message}"
|
puts "[ERROR] #{e.message}"
|
||||||
|
|
||||||
|
unless e.backtrace[0] =~ /main/
|
||||||
puts 'Trace :'
|
puts 'Trace :'
|
||||||
puts e.backtrace.join("\n")
|
puts e.backtrace.join("\n")
|
||||||
|
end
|
||||||
|
|
||||||
exit(1)
|
exit(1)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user