repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: trivial cleanups
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ocpp
/
OCPPServiceUtils.ts
diff --git
a/src/charging-station/ocpp/OCPPServiceUtils.ts
b/src/charging-station/ocpp/OCPPServiceUtils.ts
index a4702dd6bcf242f3a2eeb234e5e65c985d9452f3..078fa0a09551ca56e9e8d66bb94aad9cb2dab92c 100644
(file)
--- a/
src/charging-station/ocpp/OCPPServiceUtils.ts
+++ b/
src/charging-station/ocpp/OCPPServiceUtils.ts
@@
-30,7
+30,7
@@
import {
type StatusNotificationRequest,
type StatusNotificationResponse,
} from '../../types';
type StatusNotificationRequest,
type StatusNotificationResponse,
} from '../../types';
-import {
ErrorUtils, Utils
, logger } from '../../utils';
+import {
Utils, handleFileException
, logger } from '../../utils';
export class OCPPServiceUtils {
protected constructor() {
export class OCPPServiceUtils {
protected constructor() {
@@
-264,7
+264,7
@@
export class OCPPServiceUtils {
try {
return JSON.parse(fs.readFileSync(filePath, 'utf8')) as JSONSchemaType<T>;
} catch (error) {
try {
return JSON.parse(fs.readFileSync(filePath, 'utf8')) as JSONSchemaType<T>;
} catch (error) {
-
ErrorUtils.
handleFileException(
+ handleFileException(
filePath,
FileType.JsonSchema,
error as NodeJS.ErrnoException,
filePath,
FileType.JsonSchema,
error as NodeJS.ErrnoException,