Skip to content

Commit efa56ae

Browse files
committed
Fix Cannot convert undefined or null to object when using default parser
Fixes: runtimes/automation/issues/634 Signed-off-by: Lan Xia <[email protected]>
1 parent ee0e89d commit efa56ae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

TestResultSummaryService/BuildProcessor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ class BuildProcessor {
176176
});
177177
} catch (e) {
178178
logger.warn(
179-
`BuildProcessor: processBuild(): Exception: ${e.toString()}`
179+
`BuildProcessor: processBuild(): Exception: ${e.toString()} ${
180+
e.stack
181+
}`
180182
);
181183
task.error = e.toString();
182184
await new DataManager().updateBuild(task);

TestResultSummaryService/DataManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class DataManager {
3636
});
3737
if (results.length === 0) {
3838
const parser = new DefaultParser();
39-
results = await parser.parse(output);
39+
results = [await parser.parse(output)];
4040
}
4141
return Object.assign.apply({}, results);
4242
}

0 commit comments

Comments
 (0)