summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/public/AppFramework/Http/ZipResponse.php2
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[] = [