Skip to content

Commit 73af31d

Browse files
committed
fix: improve error logging in demo
1 parent b70dbe0 commit 73af31d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/app/home/home-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function listenToActivityChanges(addListener = false) {
9898
activityRecognizers.forEach((recognizerType) => {
9999
listenToActivityChangesFor(recognizerType, addListener).catch((err) => {
100100
console.error(
101-
`An error occurred while listening to ${recognizerType} res activity changes: ${err}`
101+
`An error occurred while listening to ${recognizerType} res activity changes: ${JSON.stringify(err)}`
102102
);
103103
});
104104
});
@@ -162,7 +162,7 @@ async function prepareGeolocationProvider(
162162
await _preparing;
163163
return true;
164164
} catch (e) {
165-
console.error(`GeolocationProvider couldn't be prepared: ${e}`);
165+
console.error(`GeolocationProvider couldn't be prepared: ${JSON.stringify(e)}`);
166166
return false;
167167
} finally {
168168
_preparing = null;

0 commit comments

Comments
 (0)