mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-11-17 16:29:19 +00:00
Add missing file
This commit is contained in:
parent
83d5e3d769
commit
072e2c20e3
7
packages/frontend/src/utils/log-error.ts
Normal file
7
packages/frontend/src/utils/log-error.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import Bugsnag from '@bugsnag/js';
|
||||||
|
|
||||||
|
export function logError(error: Error) {
|
||||||
|
if (import.meta.env.VITE_BUGSNAG_API_KEY) {
|
||||||
|
Bugsnag.notify(error);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user