Skip to content

Commit

Permalink
HARMONY-1806: Updated error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygliuvt committed Jul 3, 2024
1 parent 950440f commit 87e3a38
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,13 +564,14 @@ export async function preprocessWorkItem(
durationMs = new Date().getTime() - resultStartTime;
logger.debug('timing.HWIUWJI.getResultItemSize.end', { durationMs });
} catch (e) {
errorMessage = 'Could not get result item file size from output STAC';
if (catalogItems) {
errorMessage = 'Cannot get result item file size from output STAC';
} else {
errorMessage = 'Cannot parse STAC catalog output from service';
}

logger.error(errorMessage);
logger.error('Caught exception:', {
message: e.message,
name: e.name,
stack: e.stack,
});
logger.error(`Caught exception: ${e.message}`, { name: e.name, stack: e.stack });
status = WorkItemStatus.FAILED;
}
const result: WorkItemPreprocessInfo = {
Expand Down

0 comments on commit 87e3a38

Please sign in to comment.