Skip to content

Commit

Permalink
added error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Dec 20, 2024
1 parent 50a5183 commit 39e83ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widget/widget.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ export class WidgetService {
created_by: "AndcoolSystems"
}
} catch (e) {
console.error(e)
json = {
status: 'error',
message: e.message ?? "Unknown error. See server console."
message: (e.message ?? "Unknown error. See server console.").slice(0, 60) + '...'
}
}
return this.parserService.parse(json, 30);
Expand Down

0 comments on commit 39e83ee

Please sign in to comment.