Skip to content

Commit

Permalink
fix: resolves #35
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Feb 1, 2025
1 parent c0724ee commit 7afec3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-carrots-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"prool": patch
---

Fixed Anvil nightly instances crashing due to warnings being piped to stderr.
6 changes: 5 additions & 1 deletion src/instances/anvil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,11 @@ export const anvil = defineInstance((parameters?: AnvilParameters) => {
const message = data.toString()
if (message.includes('Listening on')) resolve()
})
process.stderr.on('data', reject)
process.stderr.on('data', (data) => {
const message = data.toString()
if (message.includes('Warning:')) return
reject(message)
})
},
},
)
Expand Down

0 comments on commit 7afec3b

Please sign in to comment.