Skip to content

Commit

Permalink
Improve error message for when an agent cannot be exec()'ed
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Jun 2, 2010
1 parent 99eb8bf commit 3ba0cf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/common/Watchdog.cpp
Expand Up @@ -450,7 +450,8 @@ class AgentWatcher {
throw SystemException(string("Unable to start the ") + name() +
": " + args[1], atoi(args[2]));
} else if (args[0] == "exec error") {
throw SystemException(string("Unable to start the ") + name(),
throw SystemException(string("Unable to start the ") + name() +
" because exec(\"" + getExeFilename() + "\") failed",
atoi(args[1]));
} else if (!processStartupInfo(pid, feedbackFd, args)) {
throw RuntimeException(string("The ") + name() +
Expand Down

0 comments on commit 3ba0cf9

Please sign in to comment.