File tree Expand file tree Collapse file tree 11 files changed +12
-24
lines changed Expand file tree Collapse file tree 11 files changed +12
-24
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,7 @@ module.exports = async function (files) {
130
130
const res = await addFileOrDirectory ( ipfsd . api , file )
131
131
successes . push ( res )
132
132
} catch ( e ) {
133
- // @ts -ignore
134
- failures . push ( e . toString ( ) )
133
+ failures . push ( String ( e ) )
135
134
}
136
135
} ) )
137
136
Original file line number Diff line number Diff line change @@ -91,8 +91,7 @@ module.exports = async function () {
91
91
92
92
return true
93
93
} catch ( err ) {
94
- // @ts -ignore
95
- logger . error ( `[launch on startup] ${ err . toString ( ) } ` )
94
+ logger . error ( `[launch on startup] ${ String ( err ) } ` )
96
95
97
96
if ( feedback ) {
98
97
// @ts -ignore
Original file line number Diff line number Diff line change @@ -54,8 +54,7 @@ function setup () {
54
54
try {
55
55
await autoUpdater . downloadUpdate ( )
56
56
} catch ( err ) {
57
- // @ts -ignore
58
- logger . error ( `[updater] ${ err . toString ( ) } ` )
57
+ logger . error ( `[updater] ${ String ( err ) } ` )
59
58
}
60
59
61
60
if ( ! feedback ) {
Original file line number Diff line number Diff line change @@ -47,8 +47,7 @@ module.exports = async function () {
47
47
48
48
return true
49
49
} catch ( err ) {
50
- // @ts -ignore
51
- logger . error ( `[automatic gc] ${ err . toString ( ) } ` )
50
+ logger . error ( `[automatic gc] ${ String ( err ) } ` )
52
51
53
52
return false
54
53
}
Original file line number Diff line number Diff line change @@ -64,8 +64,7 @@ class Context {
64
64
this . _properties . set ( propertyName , value )
65
65
this . _resolvePropToValue ( propertyName , value )
66
66
} catch ( e ) {
67
- // @ts -ignore
68
- logger . error ( e )
67
+ logger . error ( String ( e ) )
69
68
}
70
69
}
71
70
@@ -109,8 +108,7 @@ class Context {
109
108
return await originalFn ( ...args )
110
109
} catch ( err ) {
111
110
logger . error ( `[ctx] Error calling ${ String ( propertyName ) } ` )
112
- // @ts -ignore
113
- logger . error ( err )
111
+ logger . error ( String ( err ) )
114
112
throw err
115
113
}
116
114
}
Original file line number Diff line number Diff line change @@ -469,8 +469,7 @@ function checkRepositoryAndConfiguration (ipfsd) {
469
469
return true
470
470
} catch ( e ) {
471
471
// Save to error.log
472
- // @ts -ignore
473
- logger . error ( e )
472
+ logger . error ( String ( e ) )
474
473
dialogs . repositoryIsInvalidDialog ( ipfsd . path )
475
474
return false
476
475
}
Original file line number Diff line number Diff line change @@ -94,8 +94,7 @@ async function setupDaemon () {
94
94
log . end ( )
95
95
updateStatus ( STATUS . STOPPING_FINISHED )
96
96
} catch ( err ) {
97
- // @ts -ignore
98
- logger . error ( `[ipfsd] ${ err . toString ( ) } ` )
97
+ logger . error ( `[ipfsd] ${ String ( err ) } ` )
99
98
updateStatus ( STATUS . STOPPING_FAILED )
100
99
} finally {
101
100
ipfsd = null
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ module.exports = async function () {
43
43
44
44
return true
45
45
} catch ( err ) {
46
- // @ts -ignore
47
- logger . error ( `[ipns over pubsub] ${ err . toString ( ) } ` )
46
+ logger . error ( `[ipns over pubsub] ${ String ( err ) } ` )
48
47
49
48
return false
50
49
}
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ module.exports = async function () {
43
43
44
44
return true
45
45
} catch ( err ) {
46
- // @ts -ignore
47
- logger . error ( `[pubsub] ${ err . toString ( ) } ` )
46
+ logger . error ( `[pubsub] ${ String ( err ) } ` )
48
47
49
48
return false
50
49
}
Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ function handleError (err) {
18
18
return
19
19
}
20
20
21
- // @ts -ignore
22
- logger . error ( err )
21
+ logger . error ( String ( err ) )
23
22
// @ts -ignore
24
23
criticalErrorDialog ( err )
25
24
}
You can’t perform that action at this time.
0 commit comments