mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 23:03:45 +02:00
Update file manager to account for new API error responses
This commit is contained in:
@@ -71,7 +71,7 @@ class RemoteRequestController extends Controller
|
|||||||
->setAccessToken($request->attributes->get('server_token'))
|
->setAccessToken($request->attributes->get('server_token'))
|
||||||
->getDirectory($requestDirectory);
|
->getDirectory($requestDirectory);
|
||||||
} catch (RequestException $exception) {
|
} catch (RequestException $exception) {
|
||||||
throw new DaemonConnectionException($exception);
|
throw new DaemonConnectionException($exception, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('server.files.list', [
|
return view('server.files.list', [
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -71,7 +71,7 @@ class FileManager {
|
|||||||
swal({
|
swal({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
title: 'File Error',
|
title: 'File Error',
|
||||||
text: jqXHR.responseJSON.error || 'An error occured while attempting to process this request. Please try again.',
|
text: jqXHR.responseJSON.errors[0].detail || 'An error occured while attempting to process this request. Please try again.',
|
||||||
});
|
});
|
||||||
console.error(jqXHR);
|
console.error(jqXHR);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user