Skip to content

Commit

Permalink
Include cost object ID in error message.
Browse files Browse the repository at this point in the history
Even though it might cryptic to some, including them at least allows to group
time slices by cost objects, even if some are missing.
  • Loading branch information
yunosh committed Apr 2, 2014
1 parent 2c25a98 commit 218ec45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hermes/lib/Hermes.php
Expand Up @@ -261,7 +261,11 @@ public static function getCostObjectByID($id)
}
}

throw new Horde_Exception_NotFound();
throw new Horde_Exception_NotFound(sprintf(
'%s (%s)',
Horde_Exception_Translation::t("Not Found"),
$id
));
}

/**
Expand Down

0 comments on commit 218ec45

Please sign in to comment.