You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$message = 'Could not establish a connection to the machine running this server. Please try again.';
48
+
} else {
49
+
$message = sprintf('There was an error while communicating with the machine running this server. This error has been logged, please try again. (code: %s) (request_id: %s)', $response->getStatusCode(), $this->requestId ?? '<nil>');
50
+
}
38
51
39
52
// Attempt to pull the actual error message off the response and return that if it is not
40
53
// a 500 level error.
41
54
if ($this->statusCode < 500 && ! is_null($response)) {
42
-
$body = $response->getBody();
43
-
if (is_string($body) || (is_object($body) && method_exists($body, '__toString'))) {
Copy file name to clipboardExpand all lines: resources/lang/en/admin/server.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
'no_new_default_allocation' => 'You are attempting to delete the default allocation for this server but there is no fallback allocation to use.',
13
13
'marked_as_failed' => 'This server was marked as having failed a previous installation. Current status cannot be toggled in this state.',
14
14
'bad_variable' => 'There was a validation error with the :name variable.',
15
-
'daemon_exception' => 'There was an exception while attempting to communicate with the daemon resulting in a HTTP/:code response code. This exception has been logged.',
15
+
'daemon_exception' => 'There was an exception while attempting to communicate with the daemon resulting in a HTTP/:code response code. This exception has been logged. (request id: :request_id)',
16
16
'default_allocation_not_found' => 'The requested default allocation was not found in this server\'s allocations.',
0 commit comments