1
0
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:
David Bomba 2016-08-03 23:03:14 +10:00
parent e393b891bd
commit ef8d2615f4

View File

@ -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