We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27adc23 commit ec0fe13Copy full SHA for ec0fe13
bin/simulator.js
@@ -24,7 +24,7 @@ if (argv.help) {
24
main().catch(onerror)
25
26
async function main () {
27
- if (!argv._.length) throw new Error('Must provide a script for the simulator to run.')
+ if (!argv._.length) return console.error(help)
28
const scriptPath = p.resolve(argv._[0])
29
const simulatorId = `hyperspace-simulator-${process.pid}`
30
process.env.HYPERSPACE_SOCKET = simulatorId
@@ -45,7 +45,7 @@ async function main () {
45
})
46
child.on('close', close)
47
48
- async function close () {
+ function close () {
49
console.log('Shutting down simulator...')
50
server.close().catch(onerror)
51
}
0 commit comments