File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/electron-updater/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,9 @@ export class NsisUpdater extends AppUpdater {
184
184
catch ( e ) {
185
185
// yes, such errors dispatched not as error event
186
186
// https://github.com/electron-userland/electron-builder/issues/1129
187
- if ( ( < any > e ) . code === "UNKNOWN" ) {
187
+ if ( ( < any > e ) . code === "UNKNOWN" || ( < any > e ) . code === "EACCES" ) { // Node 8 sends errors: https://nodejs.org/dist/latest-v8.x/docs/api/errors.html#errors_common_system_errors
188
188
if ( this . logger != null ) {
189
- this . logger . info ( "UNKNOWN error code on spawn, will be executed again using elevate" )
189
+ this . logger . info ( "Access denied or UNKNOWN error code on spawn, will be executed again using elevate" )
190
190
}
191
191
192
192
try {
You can’t perform that action at this time.
0 commit comments