Update file manager to account for new API error responses
This commit is contained in:
parent
46d7ba7585
commit
8a38a8af4a
4 changed files with 4 additions and 4 deletions
|
@ -71,7 +71,7 @@ class RemoteRequestController extends Controller
|
|||
->setAccessToken($request->attributes->get('server_token'))
|
||||
->getDirectory($requestDirectory);
|
||||
} catch (RequestException $exception) {
|
||||
throw new DaemonConnectionException($exception);
|
||||
throw new DaemonConnectionException($exception, true);
|
||||
}
|
||||
|
||||
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({
|
||||
type: '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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue