mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 16:00:57 +01:00
client: Fix error scope related bitrot.
This commit is contained in:
parent
526bfa23e1
commit
ef2aa0d249
2 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ window.addEventListener("error", (msg, url, line, column, error) => mc.abort(
|
||||||
* Where exceptions are sent after being handled (or not) in some JS callstack. This
|
* Where exceptions are sent after being handled (or not) in some JS callstack. This
|
||||||
* propagates the exception to the DOM for display to the user, and eventually if no
|
* propagates the exception to the DOM for display to the user, and eventually if no
|
||||||
* viable DOM catch directive displays it, propagation continues to the root element
|
* viable DOM catch directive displays it, propagation continues to the root element
|
||||||
* of the application which will smother the whole app with the error.
|
* of the application which will smother the whole app with the black screen of doom.
|
||||||
*/
|
*/
|
||||||
mc.unhandled = function(error)
|
mc.unhandled = function(error)
|
||||||
{
|
{
|
||||||
|
@ -128,7 +128,7 @@ mc.unhandled = function(error)
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
let root = mc.root_scope();
|
let root = mc.ng.root();
|
||||||
root.error = error;
|
root.error = error;
|
||||||
}
|
}
|
||||||
catch(e)
|
catch(e)
|
||||||
|
|
|
@ -517,7 +517,7 @@ mc.io.request.error = function(event)
|
||||||
message:
|
message:
|
||||||
!empty(this.reason)? this.reason:
|
!empty(this.reason)? this.reason:
|
||||||
response && xhr.responseType == "text"? response:
|
response && xhr.responseType == "text"? response:
|
||||||
"There may be a network connectivity problem.",
|
"Unknown error. There may be a network connectivity problem.",
|
||||||
|
|
||||||
request_stack:
|
request_stack:
|
||||||
this.stack,
|
this.stack,
|
||||||
|
|
Loading…
Reference in a new issue