Add exception for checking patch file exist

This commit is contained in:
crazywhalecc 2025-06-30 19:45:26 +08:00
parent 3965a899c7
commit d00a5223d3

View File

@ -177,6 +177,9 @@ class SourcePatcher
}
$patch_str = FileSystem::convertPath($patch_file);
if (!file_exists($patch_str)) {
throw new RuntimeException("Patch file [{$patch_str}] does not exist");
}
// Copy patch from phar
if (str_starts_with($patch_str, 'phar://')) {