mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Blueslip: on staging, save stacktrace for easy c&p
(imported from commit 5c6b3ddd789100b011aeef863495ae8cb5cdaac8)
This commit is contained in:
parent
ccec989036
commit
86151bb5ef
@ -92,6 +92,14 @@ function report_error(msg, stack, opts) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (page_params.staging) {
|
||||
// Save the stacktrace so it can be examined even on local servers.
|
||||
// (N.B. This assumes you have set DEBUG = False on your local
|
||||
// server, or else this code path won't execute to begin with --
|
||||
// useful for testing (un)minification.)
|
||||
window.last_stacktrace = stack;
|
||||
}
|
||||
}
|
||||
|
||||
function BlueslipError(msg, more_info) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user