mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: Print backtrace of error when plugin fails to initialize.
This commit is contained in:
parent
c5b1f028ed
commit
4065cd198a
|
@ -42,6 +42,8 @@ def plugin_initialization_guard(&block)
|
|||
initialization:
|
||||
|
||||
#{error}
|
||||
|
||||
#{error.backtrace.join("\n")}
|
||||
MESSAGE
|
||||
end
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user