Skip to content

Commit 415bc0e

Browse files
authored
Merge pull request #4351 from jeclrsg/fix-comms-unhelpful-exception-logging
fix(comms): add more info to unhelpful exception logging
2 parents 5605dbb + 2ca4f58 commit 415bc0e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/comms/src/ecl/dfuWorkunit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export class DFUWorkunit extends StateObject<UDFUWorkunitState, IDFUWorkunitStat
355355
return false;
356356
});
357357
if (!wuMissing) {
358-
logger.warning("Unexpected exception: ");
358+
logger.warning(`Unexpected ESP exception: ${e.message}`);
359359
throw e;
360360
}
361361
return {} as FileSpray.GetDFUWorkunitResponse;

packages/comms/src/ecl/logicalFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class LogicalFile extends StateObject<FileDetailEx, FileDetailEx> impleme
165165
return false;
166166
});
167167
if (!fileMissing) {
168-
logger.warning("Unexpected exception: ");
168+
logger.warning(`Unexpected ESP exception: ${e.message}`);
169169
throw e;
170170
}
171171
return {} as FileDetailEx;

packages/comms/src/ecl/workunit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ export class Workunit extends StateObject<UWorkunitState, IWorkunitState> implem
10121012
return false;
10131013
});
10141014
if (!wuMissing) {
1015-
logger.warning("Unexpected exception: ");
1015+
logger.warning(`Unexpected ESP exception: ${e.message}`);
10161016
throw e;
10171017
}
10181018
return {} as WsWorkunits.WUQueryResponse;
@@ -1054,7 +1054,7 @@ export class Workunit extends StateObject<UWorkunitState, IWorkunitState> implem
10541054
return false;
10551055
});
10561056
if (!wuMissing) {
1057-
logger.warning("Unexpected exception: ");
1057+
logger.warning(`Unexpected ESP exception: ${e.message}`);
10581058
throw e;
10591059
}
10601060
return {} as WsWorkunits.WUInfoResponse;

0 commit comments

Comments
 (0)