vfs: handle unsupported watch exception

This commit is contained in:
Alexander Boettcher 2019-08-19 14:45:03 +02:00 committed by Christian Helmuth
parent 1113c4f6a2
commit 32323abe8e
1 changed files with 1 additions and 0 deletions

View File

@ -866,6 +866,7 @@ class Vfs::Fs_file_system : public File_system
::File_system::Watch_handle fs_handle { -1U };
try { fs_handle = _fs.watch(path); }
catch (Unavailable) { return WATCH_ERR_UNACCESSIBLE; }
catch (Lookup_failed) { return WATCH_ERR_UNACCESSIBLE; }
catch (Permission_denied) { return WATCH_ERR_STATIC; }
catch (Out_of_ram) { return WATCH_ERR_OUT_OF_RAM; }