summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Lela <eng.khaled.lela@gmail.com>2025-08-14 15:28:11 +0300
committerKhaled Lela <eng.khaled.lela@gmail.com>2025-08-14 15:28:11 +0300
commit1813b3a3ecca7e7bc1e9ae9d1baf1b559a70168b (patch)
tree8e31a52a080c98a7439d3c54cda991315e5d4766
parente43bcd1830be760ee2b05c559c661710d107d826 (diff)
Refactor error handling in readScormArchive method to throw the original exception instead of a custom StorageNotFoundException
-rw-r--r--src/Manager/ScormDisk.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Manager/ScormDisk.php b/src/Manager/ScormDisk.php
index 5b71904..41de387 100644
--- a/src/Manager/ScormDisk.php
+++ b/src/Manager/ScormDisk.php
@@ -76,7 +76,7 @@ class ScormDisk
$this->clean($file);
} catch (Exception $ex) {
Log::error('Error in readScormArchive: ' . $ex->getMessage() . ' for file: ' . $file);
- throw new StorageNotFoundException('scorm_archive_not_found');
+ throw $ex;
}
}