File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public function run($files)
115
115
return $ resultFile ;
116
116
} catch (Exception $ e ) {
117
117
error_log ("Exception: " . $ e ->getMessage () . " in " . $ e ->getFile () . "\n" . $ e ->getTraceAsString ());
118
- return " cc_exception_thrown " ;
118
+ return $ e ;
119
119
}
120
120
}
121
121
}
Original file line number Diff line number Diff line change 38
38
39
39
$ results = $ server ->get_all_results ();
40
40
41
- // If there is no output from the runner, an exception must have occurred
42
41
foreach ($ results as $ result_file ) {
43
- if ($ result_file = " cc_exception_thrown " ) {
42
+ if (is_a ( $ result_file, " Exception " ) ) {
44
43
exit (1 );
45
- } else {
46
- echo file_get_contents ($ result_file );
47
- unlink ($ result_file );
48
44
}
45
+
46
+ echo file_get_contents ($ result_file );
47
+ unlink ($ result_file );
49
48
}
You can’t perform that action at this time.
0 commit comments