Skip to content

Commit 39e83ee

Browse files
added error logging
1 parent 50a5183 commit 39e83ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/widget/widget.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ export class WidgetService {
112112
created_by: "AndcoolSystems"
113113
}
114114
} catch (e) {
115+
console.error(e)
115116
json = {
116117
status: 'error',
117-
message: e.message ?? "Unknown error. See server console."
118+
message: (e.message ?? "Unknown error. See server console.").slice(0, 60) + '...'
118119
}
119120
}
120121
return this.parserService.parse(json, 30);

0 commit comments

Comments
 (0)