improve error handling for document downloads
This commit is contained in:
parent
e393b891bd
commit
ef8d2615f4
1 changed files with 2 additions and 1 deletions
|
|
@ -55,7 +55,8 @@ class DocumentAPIController extends BaseAPIController
|
|||
if(array_key_exists($document->type, Document::$types))
|
||||
return DocumentController::getDownloadResponse($document);
|
||||
else
|
||||
return $this->errorResponse(['error'=>'Invalid mime type'],400); }
|
||||
return $this->errorResponse(['error'=>'Invalid mime type'],400);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CreateDocumentRequest $request
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue