Skip to content

Commit 9f51014

Browse files
committed
🥅 Better error handling
1 parent 9cc28aa commit 9f51014

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/masq.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module Masq
1919
require_relative "masq/active_record_openid_store/nonce"
2020
require_relative "masq/active_record_openid_store/openid_ar_store"
2121
require_relative "masq/signup"
22-
rescue StandardError, LoadError => e
22+
rescue StandardError, LoadError => error
2323
if !defined?(::Rails::Engine)
2424
warn("masq2 is a Rails engine, but Rails::Engine isn't defined.")
2525
else
@@ -30,6 +30,12 @@ module Masq
3030
require "masq/engine"
3131
3232
If unable to resolve, please report a bug to the issue tracker at https://github.com/oauth-xx/masq2
33+
34+
Original Error:
35+
#{error.class}: #{error.message}
36+
37+
BACKTRACE:
38+
#{Array(error.backtrace).join("\n")}
3339
WARNING
3440
end
3541
end

0 commit comments

Comments
 (0)