diff options
Diffstat (limited to 'frontend/src/components/modals/filepicker/index.tsx')
| -rw-r--r-- | frontend/src/components/modals/filepicker/index.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/src/components/modals/filepicker/index.tsx b/frontend/src/components/modals/filepicker/index.tsx index 50931358..ae745c9c 100644 --- a/frontend/src/components/modals/filepicker/index.tsx +++ b/frontend/src/components/modals/filepicker/index.tsx @@ -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); |
