X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FErrorUtils.ts;h=0e3dbc50058c669c1c5a30a17c8ecbe14e9138c9;hb=c36e3cf0312f553b4b8c2b716da0d55cc87450cf;hp=b4f52ba894a9e57891a04954bbe066b6b1d40ad8;hpb=d58b442097da31f8b974d51aef63c64470d9ab48;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/ErrorUtils.ts b/src/utils/ErrorUtils.ts index b4f52ba8..0e3dbc50 100644 --- a/src/utils/ErrorUtils.ts +++ b/src/utils/ErrorUtils.ts @@ -1,7 +1,7 @@ import chalk from 'chalk'; import { logger } from './Logger'; -import { Utils } from './Utils'; +import { isNotEmptyString } from './Utils'; import type { ChargingStation } from '../charging-station'; import type { EmptyObject, @@ -37,7 +37,7 @@ export const handleFileException = ( params: HandleErrorParams = defaultErrorParams ): void => { setDefaultErrorParams(params); - const prefix = Utils.isNotEmptyString(logPrefix) ? `${logPrefix} ` : ''; + const prefix = isNotEmptyString(logPrefix) ? `${logPrefix} ` : ''; let logMsg: string; switch (error.code) { case 'ENOENT':