Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/Manifest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,6 @@ export class Manifest {
},
})

/**
* Print warning when `stderr` exists
*/
if (response.stderr) {
if (this.isMalformedJSONError(response.stderr) && this.attempts < this.maxAttempts) {
this.attempts++
return this.generate()
}

this.logger.warning(WARN_MESSAGE)
this.logger.logError(response.stderr)
return false
}

/**
* Log success
*/
Expand Down
4 changes: 2 additions & 2 deletions test/compiler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ test.group('Compiler', (group) => {
assert.isTrue(hasPackageLock)
}).timeout(0)

test('gracefully log error when ace file writes to stderr', async (assert) => {
test('gracefully log error when ace file finishes with non-zero exit code', async (assert) => {
await fs.add(
'.adonisrc.json',
JSON.stringify({
Expand All @@ -624,7 +624,7 @@ test.group('Compiler', (group) => {
})
)

await fs.add('ace', "console.error('foo')")
await fs.add('ace', "console.error('foo');process.exit(1)")
await fs.add('src/foo.ts', '')
await fs.add('public/styles/main.css', '')
await fs.add('public/scripts/main.js', '')
Expand Down