forked from cerc-io/snowballtools-base
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