From a5318084310a03fe04655b535921b9d33f3f29d0 Mon Sep 17 00:00:00 2001 From: Tijn Schuurmans Date: Mon, 16 Oct 2017 16:37:59 +0200 Subject: [PATCH] Add an error handler --- src/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.js b/src/main.js index 461ea69..04c1174 100644 --- a/src/main.js +++ b/src/main.js @@ -52,6 +52,11 @@ export default { this.down() } } + }).catch((error) => { + if (this.handleError) { + this.handleError(error) + } + this.loading = false }) },