Improve error message if the daemon worker fails to start

This commit is contained in:
Eelco Dolstra 2014-10-31 09:36:09 +01:00 committed by Ludovic Courtès
parent bed17f40fc
commit 1129a982c4
2 changed files with 2 additions and 3 deletions

View File

@ -87,8 +87,7 @@ void RemoteStore::openConnection(bool reserveSpace)
processStderr();
}
catch (Error & e) {
throw Error(format("cannot start worker (%1%)")
% e.msg());
throw Error(format("cannot start daemon worker: %1%") % e.msg());
}
setOptions();

View File

@ -704,7 +704,7 @@ static void processConnection(bool trusted)
to.flush();
} catch (Error & e) {
stopWork(false, e.msg());
stopWork(false, e.msg(), GET_PROTOCOL_MINOR(clientVersion) >= 8 ? 1 : 0);
to.flush();
return;
}