diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-02 08:17:27 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-02 08:17:27 +0200 |
commit | 7d9052d4b9d4ac690c32d7f9e79da2a06b0df055 (patch) | |
tree | 05fb6fd660d89c8bf4b3f853efa4ea1c62dbf180 /lib/public/AppFramework/Http | |
parent | a891f42a5de0b0a2a67d03525d81c028fdb3caf1 (diff) | |
download | nextcloud-server-7d9052d4b9d4ac690c32d7f9e79da2a06b0df055.tar.gz nextcloud-server-7d9052d4b9d4ac690c32d7f9e79da2a06b0df055.zip |
fixup! Add fix response
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/AppFramework/Http')
-rw-r--r-- | lib/public/AppFramework/Http/ZipResponse.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Http/ZipResponse.php b/lib/public/AppFramework/Http/ZipResponse.php index c70482a0a9b..712af17d2d7 100644 --- a/lib/public/AppFramework/Http/ZipResponse.php +++ b/lib/public/AppFramework/Http/ZipResponse.php @@ -46,7 +46,7 @@ class ZipResponse extends Response implements ICallbackResponse { public function addResource($r, string $internalName, int $size, int $time = -1) { if (!\is_resource($r)) { - return; + throw new \InvalidArgumentException('No resource provided'); } $this->resources[] = [ |