Properly extend Error instead of implementing it, update the Error message and stack to appear in the console and error activity

This commit is contained in:
Panayot Cankov
2016-12-01 09:03:40 +02:00
committed by Vladimir Enchev
parent bc3910f9c8
commit 89ee3dc717
7 changed files with 97 additions and 120 deletions

View File

@@ -782,7 +782,7 @@ export function test_NonExistingElementError() {
var basePath = "xml-declaration/";
var expectedErrorStart =
"Building UI from XML. @file:///app/" + basePath + "errors/non-existing-element.xml:11:5\n" +
" Module 'ui/unicorn' not found for element 'Unicorn'.";
" > Module 'ui/unicorn' not found for element 'Unicorn'.";
var message;
try {
builder.load(__dirname + "/errors/non-existing-element.xml");
@@ -796,7 +796,7 @@ export function test_NonExistingElementInTemplateError() {
var basePath = "xml-declaration/";
var expectedErrorStart =
"Building UI from XML. @file:///app/" + basePath + "errors/non-existing-element-in-template.xml:14:17\n" +
" Module 'ui/unicorn' not found for element 'Unicorn'.";
" > Module 'ui/unicorn' not found for element 'Unicorn'.";
var message;
var page = builder.load(__dirname + "/errors/non-existing-element-in-template.xml");
TKUnit.assert(view, "Expected the xml to generate a page");