Skip to content

Commit a99cb00

Browse files
committed
Improve failure debugging
1 parent 70f900a commit a99cb00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Models/FileModel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ public function createFromFile(CIFile $file, array $data = []): File
196196
{
197197
log_message('error', $e->getMessage());
198198
log_message('error', 'Unable to create thumbnail for ' . $row['filename']);
199+
200+
if (ENVIRONMENT === 'testing')
201+
{
202+
throw $e;
203+
}
199204
}
200205

201206
// Return the File entity

0 commit comments

Comments
 (0)