mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 08:22:04 +00:00
feat: Added detailed message for permission error and clean up english language from unused strings.
This commit is contained in:
@@ -210,6 +210,9 @@ const FilePicker: FunctionComponent<FilePickerProps> = ({
|
||||
case theError.match(/\[WinError\s3.*/i)?.input:
|
||||
setError(FileErrorTypes.FileNotFound);
|
||||
break;
|
||||
case theError.match(/\[Errno\s13.*/i)?.input:
|
||||
setError(FileErrorTypes.PermissionDenied);
|
||||
break;
|
||||
default:
|
||||
setRawError(theError);
|
||||
setError(FileErrorTypes.Unknown);
|
||||
|
||||
Reference in New Issue
Block a user