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