Skip to content

Commit

Permalink
$mol+run: hot hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Nov 7, 2024
1 parent 992c4f7 commit 0be4ede
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run/run.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ namespace $ {
command: args_raw.join(' ') ,
dir: $node.path.relative( '' , dir ) ,
})
return this.$mol_run_spawn_sync(app, args, { shell: true, cwd: dir, env })
const res = this.$mol_run_spawn_sync(app, args, { shell: true, cwd: dir, env });
if( res.status ) $mol_fail( new Error( res.stderr.toString() || 'Exit(' + res.status + ')' ) )
return res
}

const sub = this.$mol_run_spawn(app, args, {
Expand Down

0 comments on commit 0be4ede

Please sign in to comment.