1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 21:10:56 +01:00

Use PhutilProxyException to disambiguate work queue failures

Summary: Fixes T2569. This is the other common exception source which is ambiguous. List the task ID explicitly to make debugging easier.

Test Plan: {F51268}

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2569

Differential Revision: https://secure.phabricator.com/D6549
This commit is contained in:
epriestley 2013-07-23 12:57:28 -07:00
parent 938b5c69c6
commit 45db6001ea

View file

@ -23,7 +23,9 @@ final class PhabricatorTaskmasterDaemon extends PhabricatorDaemon {
$this->log("Task {$id} failed permanently.");
} else {
$this->log("Task {$id} failed!");
throw $ex;
throw new PhutilProxyException(
"Error while executing task ID {$id} from queue.",
$ex);
}
} else {
$this->log("Task {$id} complete! Moved to archive.");