mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Better tracing (logging) of run-time errors.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user