Skip to content

Commit

Permalink
Show system error msg in error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
craigdietrich committed Jul 19, 2023
1 parent d057efb commit a9165f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/application/libraries/File_Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private function upload($tempFile, $targetFile) {
try {
$this->storage->store($tempFile, $targetFile);
} catch (Scalar_Storage_Exception $e) {
throw new Exception('Problem moving temp file. The file is likely larger than the system\'s max upload size (' . $this->getMaximumFileUploadSize() . ').');
throw new Exception('Problem moving temp file. '.$e->getMessage().' The file is likely larger than the system\'s max upload size (' . $this->getMaximumFileUploadSize() . ').');
}
return $this->storage->getUri($targetFile);
}
Expand Down

0 comments on commit a9165f1

Please sign in to comment.