Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/dev' into dev

Patrick-Christopher Mattulat 3 gadi atpakaļ
vecāks
revīzija
1e04fae753
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      source/ls_std/io/File.cpp

+ 5 - 1
source/ls_std/io/File.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2021-09-17
+ * Changed:         2021-09-24
  *
  * */
 
@@ -362,6 +362,10 @@ bool ls_std::File::_isReadableUnix(const std::string &_path)
       readable = (_stat.st_mode & (unsigned) S_IREAD) != 0;
     }
   }
+  else
+  {
+    throw ls_std::FileOperationException{};
+  }
 
   return readable;
 }