Skip to content

Commit

Permalink
Improve error message when Jobe request fails
Browse files Browse the repository at this point in the history
  • Loading branch information
trampgeek committed Mar 5, 2024
1 parent 028dc0b commit 7031350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/jobesandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function execute($sourcecode, $language, $input, $files = null, $params =
$errorcode = $okresponse ? self::UNKNOWN_SERVER_ERROR : $this->get_error_code($httpcode);
$this->currentjobid = null;
$runresult['error'] = $errorcode;
$runresult['stderr'] = "HTTP response from Jobe was $httpcode: " . json_encode($this->response);
$runresult['stderr'] = "HTTP response from Jobe ({$this->jobeserver}) was $httpcode: " . json_encode($this->response);
} else if ($this->response->outcome == self::RESULT_SERVER_OVERLOAD) {
$runresult['error'] = self::SERVER_OVERLOAD;
} else {
Expand Down

0 comments on commit 7031350

Please sign in to comment.