0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

client: Fix error scope related bitrot.

This commit is contained in:
Jason Volk 2017-10-30 12:55:56 -07:00
parent 526bfa23e1
commit ef2aa0d249
2 changed files with 3 additions and 3 deletions

View file

@ -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
* 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
* 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)
{
@ -128,7 +128,7 @@ mc.unhandled = function(error)
try
{
let root = mc.root_scope();
let root = mc.ng.root();
root.error = error;
}
catch(e)

View file

@ -517,7 +517,7 @@ mc.io.request.error = function(event)
message:
!empty(this.reason)? this.reason:
response && xhr.responseType == "text"? response:
"There may be a network connectivity problem.",
"Unknown error. There may be a network connectivity problem.",
request_stack:
this.stack,