catch benchmarks execution error
[benchmarks-js.git] / busy-wait.js
index 3316db96bedab3163f0f7b2c4e18a1b54096cb8d..a851a30e911870542cd9612b2777c7654c057a36 100644 (file)
@@ -77,4 +77,6 @@ Benchmark.suite(
   Benchmark.save({ file: 'busy-wait', format: 'json', details: true }),
   Benchmark.save({ file: 'busy-wait', format: 'chart.html', details: true }),
   Benchmark.save({ file: 'busy-wait', format: 'table.html', details: true })
-)
+).catch(err => {
+  console.error(err)
+})