File tree 7 files changed +115
-249
lines changed
7 files changed +115
-249
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ node_modules
34
34
release
35
35
src /main.prod.js
36
36
src /main.prod.js.map
37
+ src /main.prod.js.LICENSE.txt
37
38
src /renderer.prod.js
38
39
src /renderer.prod.js.map
39
40
src /style.css
Original file line number Diff line number Diff line change 253
253
"webpack" : " ^5.94.0" ,
254
254
"webpack-bundle-analyzer" : " ^4.10.2" ,
255
255
"webpack-cli" : " ^4.7.2" ,
256
- "webpack-dev-server" : " ^5.1.0 " ,
256
+ "webpack-dev-server" : " ^4.15.2 " ,
257
257
"webpack-merge" : " ^5.10.0" ,
258
258
"yarn-deduplicate" : " ^6.0.2"
259
259
},
Original file line number Diff line number Diff line change 1
1
import { ChildProcessWithoutNullStreams , spawn } from 'child_process' ;
2
- import * as Sentry from '@sentry/electron' ;
2
+ import * as Sentry from '@sentry/electron/main ' ;
3
3
import { ChannelCredentials } from '@grpc/grpc-js' ;
4
4
import { createServer } from 'net' ;
5
5
@@ -39,10 +39,14 @@ export async function start(sentryDSN: string): Promise<CLI> {
39
39
} ) ;
40
40
process . on ( 'close' , ( code , signal ) => {
41
41
if ( signal != null ) return ;
42
- Sentry . captureEvent ( {
43
- message : 'API process unexpectedly quit' ,
44
- extra : { code } ,
45
- } ) ;
42
+ if ( ( code || 0 ) > 0 ) {
43
+ // code == -2 when the child process didn't start at all,
44
+ // code == 0 when we close the child process
45
+ Sentry . captureEvent ( {
46
+ message : 'API process unexpectedly quit' ,
47
+ extra : { code } ,
48
+ } ) ;
49
+ }
46
50
} ) ;
47
51
48
52
const configClient = new ConfigClient (
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
16
16
MessageBoxOptions ,
17
17
} from 'electron' ;
18
18
import * as grpc from '@grpc/grpc-js' ;
19
- import * as Sentry from '@sentry/electron' ;
19
+ import * as Sentry from '@sentry/electron/main ' ;
20
20
import log from 'electron-log' ;
21
21
import { autoUpdater } from 'electron-updater' ;
22
22
import { menubar } from 'menubar' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import * as Sentry from '@sentry/electron' ;
1
+ import * as Sentry from '@sentry/electron/main ' ;
2
2
import { BrowserWindow } from 'electron' ;
3
3
import { getAssetPath } from '../main/binaries' ;
4
4
import MenuBuilder from './menu' ;
You can’t perform that action at this time.
0 commit comments