fix: various fixes to files handling and their content caching
[e-mobility-charging-stations-simulator.git] / src / utils / Configuration.ts
index 214260701bb112351a4bcf6df6f627c4cdddf0e1..e4215f94c973e3be09c6283d9773e489067105d7 100644 (file)
@@ -413,10 +413,14 @@ export class Configuration {
       case 'EACCES':
         logMsg = `${fileType} file ${file} access denied:`;
         break;
+      case 'EPERM':
+        logMsg = `${fileType} file ${file} permission denied:`;
+        break;
       default:
         logMsg = `${fileType} file ${file} error:`;
     }
-    console.warn(`${chalk.green(prefix)}${chalk.yellow(`${logMsg} `)}`, error);
+    console.error(`${chalk.green(prefix)}${chalk.red(`${logMsg} `)}`, error);
+    throw error;
   }
 
   private static getDefaultPerformanceStorageUri(storageType: StorageType) {