Improve error message if the daemon worker fails to start
This commit is contained in:
parent
1cdbb9d724
commit
e389f4ea55
2 changed files with 2 additions and 3 deletions
|
@ -87,8 +87,7 @@ void RemoteStore::openConnection(bool reserveSpace)
|
||||||
processStderr();
|
processStderr();
|
||||||
}
|
}
|
||||||
catch (Error & e) {
|
catch (Error & e) {
|
||||||
throw Error(format("cannot start worker (%1%)")
|
throw Error(format("cannot start daemon worker: %1%") % e.msg());
|
||||||
% e.msg());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setOptions();
|
setOptions();
|
||||||
|
|
|
@ -565,7 +565,7 @@ static void processConnection(bool trusted)
|
||||||
to.flush();
|
to.flush();
|
||||||
|
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
stopWork(false, e.msg());
|
stopWork(false, e.msg(), GET_PROTOCOL_MINOR(clientVersion) >= 8 ? 1 : 0);
|
||||||
to.flush();
|
to.flush();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue