Skip to content

Commit 747e51e

Browse files
committed
fix an issue with deno
1 parent 2151135 commit 747e51e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/deno/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,15 @@ let ensureServiceIsRunning = (): Promise<Service> => {
224224
const stdoutBuffer = new Uint8Array(4 * 1024 * 1024)
225225
const readMoreStdout = () => child.stdout.read(stdoutBuffer).then(n => {
226226
if (n === null) {
227-
afterClose()
227+
afterClose(null)
228228
} else {
229229
readFromStdout(stdoutBuffer.subarray(0, n))
230230
readMoreStdout()
231231
}
232232
}).catch(e => {
233233
if (e instanceof Deno.errors.Interrupted || e instanceof Deno.errors.BadResource) {
234234
// ignore the error if read was interrupted (stdout was closed)
235-
afterClose()
235+
afterClose(e)
236236
} else {
237237
throw e;
238238
}

0 commit comments

Comments
 (0)