Skip to content

Commit d14ded8

Browse files
committed
fix: report hooks error with stack for easier debugging
1 parent f5fb601 commit d14ded8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/common/mobile/mobile-core/devices-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ export class DevicesService
666666
}
667667

668668
const errorMessage = `${preErrorMsg}${errors
669-
.map((e) => e.message || e)
669+
.map((e) => e.stack || e.message || e)
670670
.join(EOL)}`;
671671
this.$errors.fail(errorMessage);
672672
}

lib/common/services/hooks-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class HooksService implements IHooksService {
154154
}
155155
} catch (err) {
156156
this.$logger.trace(`Failed during hook execution ${hookName}.`);
157-
this.$errors.fail(err.message || err);
157+
this.$errors.fail(err.stack || err.message || err);
158158
}
159159

160160
return _.flatten(results);

0 commit comments

Comments
 (0)