diff --git a/bench/benchmarks/layers.js b/bench/benchmarks/layers.js index a63e25e40ef..e56c5f0d2fb 100644 --- a/bench/benchmarks/layers.js +++ b/bench/benchmarks/layers.js @@ -25,6 +25,8 @@ export class LayerBenchmark extends Benchmark { style: this.layerStyle }).then(map => { this.map = map; + }).catch(error => { + console.error(error); }); } diff --git a/bench/benchmarks/map_load.js b/bench/benchmarks/map_load.js index 8d54de97346..38eaa51bf90 100644 --- a/bench/benchmarks/map_load.js +++ b/bench/benchmarks/map_load.js @@ -10,6 +10,10 @@ export default class MapLoad extends Benchmark { sources: {}, layers: [] } - }).then(map => map.remove()); + }) + .then(map => map.remove()) + .catch(error => { + console.error(error); + }); } } diff --git a/bench/benchmarks/paint.js b/bench/benchmarks/paint.js index bdcfffed252..3a3625fffae 100644 --- a/bench/benchmarks/paint.js +++ b/bench/benchmarks/paint.js @@ -30,6 +30,9 @@ export default class Paint extends Benchmark { })) .then(maps => { this.maps = maps; + }) + .catch(error => { + console.error(error); }); } diff --git a/bench/benchmarks/paint_states.js b/bench/benchmarks/paint_states.js index 0a0a136011e..75c91b3f924 100644 --- a/bench/benchmarks/paint_states.js +++ b/bench/benchmarks/paint_states.js @@ -53,6 +53,8 @@ export default class PaintStates extends Benchmark { style }).then(map => { this.map = map; + }).catch(error => { + console.error(error); }); }); } diff --git a/bench/benchmarks/query_box.js b/bench/benchmarks/query_box.js index 70fab170b3b..7353864605c 100644 --- a/bench/benchmarks/query_box.js +++ b/bench/benchmarks/query_box.js @@ -30,6 +30,9 @@ export default class QueryBox extends Benchmark { })) .then(maps => { this.maps = maps; + }) + .catch(error => { + console.error(error); }); } diff --git a/bench/benchmarks/query_point.js b/bench/benchmarks/query_point.js index f0d59439e1a..d96f3130a92 100644 --- a/bench/benchmarks/query_point.js +++ b/bench/benchmarks/query_point.js @@ -41,6 +41,9 @@ export default class QueryPoint extends Benchmark { })) .then(maps => { this.maps = maps; + }) + .catch(error => { + console.error(error); }); } diff --git a/bench/benchmarks/remove_paint_state.js b/bench/benchmarks/remove_paint_state.js index 8fe38cd6eb0..75c8017cd21 100644 --- a/bench/benchmarks/remove_paint_state.js +++ b/bench/benchmarks/remove_paint_state.js @@ -53,7 +53,10 @@ class RemovePaintState extends Benchmark { style }).then(map => { this.map = map; - }); + }) + .catch(error => { + console.error(error); + }); }); }