File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,10 @@ exports.initStats = async function () {
50
50
try {
51
51
talkgroupStats = JSON . parse ( fileContents ) ;
52
52
} catch ( error ) {
53
- console . error ( "Error parsing JSON data:" , error ) ;
53
+ console . error ( "Talkgroup Stats - Error parsing JSON data:" , error ) ;
54
54
}
55
+ } else {
56
+ console . error ( "Talkgroup Stats File not found: " + filePath ) ;
55
57
}
56
58
57
59
// Check if the decodeErrorsFreq.json file exists
@@ -64,9 +66,12 @@ exports.initStats = async function () {
64
66
try {
65
67
decodeErrorsFreq = JSON . parse ( fileContents ) ;
66
68
} catch ( error ) {
67
- console . error ( "Error parsing JSON data:" , error ) ;
69
+ console . error ( "Decode Errors - Error parsing JSON data:" , error ) ;
68
70
}
71
+ } else {
72
+ console . error ( "Decode Errors File not found: " + decodeErrorsFreqPath ) ;
69
73
}
74
+
70
75
/*
71
76
for await (const item of SystemStat.find()) {
72
77
const obj = item.toObject();
You can’t perform that action at this time.
0 commit comments