Skip to content

Commit da5e241

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: better object store write error propagation
Signed-off-by: Robin Appelman <robin@icewind.nl> [skip ci]
1 parent eda640e commit da5e241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/ObjectStore/ObjectStoreStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ public function writeStream(string $path, $stream, ?int $size = null): int {
548548
]
549549
);
550550
}
551-
throw $ex; // make this bubble up
551+
throw new GenericFileException('Error while writing stream to object store', 0, $ex);
552552
}
553553

554554
if ($exists) {

0 commit comments

Comments
 (0)