Skip to content

Catch exception from parser, log and set run to failed, instead of crashing #22

@tnachen

Description

@tnachen

Currently if the parser finds a problem, it crashes the controller:

e.g:

/app/extension-lib/parser.js:32
let values = capturedLine.split(",")[1].split(":")[1].split("|");
^

TypeError: Cannot read property 'split' of undefined
at Parser.processLines (/app/extension-lib/parser.js:32:56)
at /app/lib/commandUtil.js:60:37
at ChildProcess. (/app/lib/commandUtil.js:45:13)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions