Skip to content

Commit b13a13b

Browse files
committed
Merge branch 'release'
2 parents 8d666a9 + 8b66dcd commit b13a13b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test-app/app/src/main/assets/app/tests/exceptionHandlingTests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,12 @@ describe("Tests exception handling ", function () {
312312
require("./syntaxErrors.js");
313313
} catch (e) {
314314
exceptionCaught = true;
315-
errMsg = e.fullMessage
315+
errMsg = e.fullMessage;
316316
}
317317
expect(exceptionCaught).toBe(true);
318318
expect(errMsg).toContain("Cannot compile /data/data/com.tns.testapplication/files/app/tests/syntaxErrors.js");
319319
expect(errMsg).toContain("SyntaxError: Unexpected token class");
320-
expect(errMsg).toContain("File: \"file:///data/data/com.tns.testapplication/files/app/tests/syntaxErrors.js, line: 3, column: 4");
320+
expect(errMsg).toContain("File: (file:///data/data/com.tns.testapplication/files/app/tests/syntaxErrors.js:3:4)");
321321
});
322322

323323
// run this test only for API level bigger than 25 as we have handling there

test-app/runtime/src/main/cpp/NativeScriptException.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ string NativeScriptException::GetFullMessage(const TryCatch& tc, const string& j
236236
string stackTraceMessage = GetErrorStackTrace(message->GetStackTrace());
237237

238238
if (!scriptResName.IsEmpty() && scriptResName->IsString()) {
239-
ss << endl <<"File: \"" << ArgConverter::ConvertToString(scriptResName.As<String>());
239+
ss << endl <<"File: (" << ArgConverter::ConvertToString(scriptResName.As<String>());
240240
} else {
241-
ss << endl <<"File: \"<unknown>";
241+
ss << endl <<"File: (<unknown>";
242242
}
243-
ss << ", line: " << message->GetLineNumber(context).ToChecked() << ", column: " << message->GetStartColumn() << endl << endl;
243+
ss << ":" << message->GetLineNumber(context).ToChecked() << ":" << message->GetStartColumn() << ")" << endl << endl;
244244
ss << "StackTrace: " << endl << stackTraceMessage << endl;
245245

246246
string loggedMessage = ss.str();

0 commit comments

Comments
 (0)