mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
improve error handling for document downloads
This commit is contained in:
parent
e393b891bd
commit
ef8d2615f4
@ -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…
Reference in New Issue
Block a user