Skip to content

Commit

Permalink
better exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
sirprize committed May 16, 2012
1 parent c8070a5 commit 6fd4852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Sirprize/Scrubble/DependencyInjection/DiContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public function get($id)
catch(\Exception $e) {
if(extension_loaded('xdebug'))
{
throw new DiException(sprintf('"Requesting undefined service "%s" in file "%s" on line %d.', $id, xdebug_call_file(), xdebug_call_line()));
throw new DiException(sprintf('Service error "%s" in file "%s" on line %d >> "%s".', $id, xdebug_call_file(), xdebug_call_line(), $e->getMessage()));
}
else {
throw new DiException(sprintf('Service identifier "%s" is not defined.', $id));
throw new DiException(sprintf('Service error "%s" >> "%s"', $id, $e->getMessage()));
}
}
}
Expand Down

0 comments on commit 6fd4852

Please sign in to comment.