X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FFileUtils.ts;h=ccee788bb99c5ac5d46623bceca00b53bb651fd2;hb=14ecae6a3d6b172ca29353e5a2faed513feff4f5;hp=69b5240d2ab3694fb2f7c6218c9fadf4ea9b48e9;hpb=e4564243466c949f35fd219092747c4dd2ac347b;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/FileUtils.ts b/src/utils/FileUtils.ts index 69b5240d..ccee788b 100644 --- a/src/utils/FileUtils.ts +++ b/src/utils/FileUtils.ts @@ -52,7 +52,7 @@ export default class FileUtils { error: NodeJS.ErrnoException, params: HandleErrorParams = { throwError: true, consoleOut: false } ): void { - const prefix = !Utils.isEmptyString(logPrefix) ? logPrefix + ' ' : ''; + const prefix = !Utils.isEmptyString(logPrefix) ? `${logPrefix} ` : ''; let logMsg: string; switch (error.code) { case 'ENOENT':