catch benchmarks execution error
[benchmarks-js.git] / empty-array.js
index a56a82461f8ef272cf0210df5e81abd069ae8cc6..c900a4239e4e4a04f17a5b92e3cadebb5d91377c 100644 (file)
@@ -30,4 +30,6 @@ Benchmark.suite(
   Benchmark.save({ file: 'empty-array', format: 'json', details: true }),
   Benchmark.save({ file: 'empty-array', format: 'chart.html', details: true }),
   Benchmark.save({ file: 'empty-array', format: 'table.html', details: true })
-)
+).catch(err => {
+  console.error(err)
+})