Handle exit codes during version check
This commit is contained in:
@@ -125,7 +125,13 @@ class MountItems extends IPCContainer {
|
||||
}
|
||||
} else {
|
||||
allowAction = false;
|
||||
this.props.errorHandler("Incompatible " + provider + " daemon. Please upgrade " + provider);
|
||||
if (result.Code === -1) {
|
||||
this.props.errorHandler('Failed to connect to ' + provider + ' daemon');
|
||||
} else if (result.Code === -3) {
|
||||
this.props.errorHandler('Incompatible ' + provider + ' daemon. Please upgrade ' + provider);
|
||||
} else {
|
||||
this.props.errorHandler('Version check failed: ' + result.Error);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
allowAction = false;
|
||||
|
||||
Reference in New Issue
Block a user