Skip to content

Commit 9ac30d1

Browse files
author
Martin Kluska
committed
updated the warning to be more clear
1 parent be44e83 commit 9ac30d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Save/ChunkSave.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,13 @@ protected function appendDataToChunkFile()
186186

187187
// open the target file
188188
if (!$out = @fopen($this->getChunkFullFilePath(), 'ab')) {
189+
throw new ChunkSaveException('Failed to open output stream. Check if chunks folder is created (permissions?)', 102);
189190
}
190191

191192
// open the new uploaded chunk
192193
if (!$in = @fopen($this->file->getPathname(), 'rb')) {
193194
@fclose($out);
194-
throw new ChunkSaveException('Failed to open input stream', 101);
195+
throw new ChunkSaveException('Failed to open input stream.', 101);
195196
}
196197

197198
// read and write in buffs

0 commit comments

Comments
 (0)