Better tracing (logging) of run-time errors.

This commit is contained in:
Nedyalko Nikolov
2016-02-26 14:16:52 +02:00
parent bd2f2c751a
commit ba2a84de6b
6 changed files with 63 additions and 20 deletions

View File

@@ -266,8 +266,9 @@ export function openUrl(location: string): boolean {
context.startActivity(intent);
} catch (e) {
ensureTrace();
// We Don't do anything with an error. We just output it
console.error("Error in OpenURL", e);
trace.write("Error in OpenURL", trace.categories.Error, trace.messageType.error);
return false;
}
return true;