From a9165f1fc34d0834b911c11757b92fc47b9d15bf Mon Sep 17 00:00:00 2001 From: Craig Dietrich Date: Wed, 19 Jul 2023 16:01:12 -0700 Subject: [PATCH] Show system error msg in error msg --- system/application/libraries/File_Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/application/libraries/File_Upload.php b/system/application/libraries/File_Upload.php index daf80844f..cb4cc8285 100755 --- a/system/application/libraries/File_Upload.php +++ b/system/application/libraries/File_Upload.php @@ -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); }