Blueslip: on staging, save stacktrace for easy c&p

(imported from commit 5c6b3ddd789100b011aeef863495ae8cb5cdaac8)
This commit is contained in:
Scott Feeney 2013-07-05 17:07:46 -04:00
parent ccec989036
commit 86151bb5ef

View File

@ -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) {