forked from lix-project/hydra
Improve erorr message
This commit is contained in:
parent
66ae66024e
commit
6fc851d376
1 changed files with 2 additions and 3 deletions
|
@ -510,9 +510,8 @@ void State::notificationSender()
|
||||||
|
|
||||||
int res = pid.wait();
|
int res = pid.wait();
|
||||||
|
|
||||||
if (res != 0)
|
if (!statusOk(res))
|
||||||
throw Error(format("hydra-build returned exit code %1% notifying about build %2%")
|
throw Error("notification about build %d failed: %s", item.id, statusToString(res));
|
||||||
% res % item.id);
|
|
||||||
|
|
||||||
} catch (std::exception & e) {
|
} catch (std::exception & e) {
|
||||||
printMsg(lvlError, format("notification sender: %1%") % e.what());
|
printMsg(lvlError, format("notification sender: %1%") % e.what());
|
||||||
|
|
Loading…
Reference in a new issue