(dumpFilePath, apps)
| 554 | } |
| 555 | |
| 556 | function parseDumpFile(dumpFilePath, apps) { |
| 557 | try { |
| 558 | var processes = Common.parseConfig(apps, 'none'); |
| 559 | } catch (e) { |
| 560 | Common.printError(cst.PREFIX_MSG_ERR + 'Failed to parse dump file in %s', dumpFilePath); |
| 561 | try { |
| 562 | fs.unlinkSync(dumpFilePath); |
| 563 | } catch (e) { |
| 564 | console.error(e.stack || e); |
| 565 | } |
| 566 | throw e; |
| 567 | } |
| 568 | |
| 569 | return processes; |
| 570 | } |
| 571 | |
| 572 | // Read dump file, fall back to backup, delete if broken |
| 573 | try { |
no outgoing calls
no test coverage detected
searching dependent graphs…