forked from lix-project/lix
* Better error message if the worker doesn't start.
This commit is contained in:
parent
363f40022f
commit
8c76df93e6
1 changed files with 8 additions and 4 deletions
|
@ -67,10 +67,14 @@ RemoteStore::RemoteStore()
|
||||||
|
|
||||||
|
|
||||||
/* Send the magic greeting, check for the reply. */
|
/* Send the magic greeting, check for the reply. */
|
||||||
|
try {
|
||||||
writeInt(WORKER_MAGIC_1, to);
|
writeInt(WORKER_MAGIC_1, to);
|
||||||
|
|
||||||
unsigned int magic = readInt(from);
|
unsigned int magic = readInt(from);
|
||||||
if (magic != WORKER_MAGIC_2) throw Error("protocol mismatch");
|
if (magic != WORKER_MAGIC_2) throw Error("protocol mismatch");
|
||||||
|
} catch (Error & e) {
|
||||||
|
throw Error(format("cannot start worker process `%1%' (%2%)")
|
||||||
|
% worker % e.msg());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue