Skip to content

Commit

Permalink
Dev: Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Dec 1, 2017
1 parent e022fe1 commit b511ee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/TestBaseClass.php
Expand Up @@ -82,7 +82,9 @@ public static function tearDownAfterClass()
parent::tearDownAfterClass();
if(self::$testSurvey){
if (!self::$testSurvey->delete()) {
die('Fatal error: Could not clean up survey ' . serialize(self::$testSurvey->errors));
die(
'Fatal error: Could not clean up survey ' . self::$testSurvey->sid . '; errors: ' . json_encode(self::$testSurvey->errors)
);
}
self::$testSurvey = null;
}
Expand Down

0 comments on commit b511ee3

Please sign in to comment.