summaryrefslogtreecommitdiffstats
path: root/frontend/lib/catchError.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-03-22 21:11:15 -0400
committerWes Bos <wesbos@gmail.com>2018-03-22 21:11:15 -0400
commit169b0953ad91f22bb3b2bf2d80d87ebfbe30d45d (patch)
treee66454fb1055440996ae01cb980394d84715bf59 /frontend/lib/catchError.js
parenta6af043686e4375d7944e91cae3d5b63c59edab0 (diff)
yay
Diffstat (limited to 'frontend/lib/catchError.js')
-rw-r--r--frontend/lib/catchError.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/frontend/lib/catchError.js b/frontend/lib/catchError.js
deleted file mode 100644
index 581d2f3..0000000
--- a/frontend/lib/catchError.js
+++ /dev/null
@@ -1,8 +0,0 @@
-const catchError = function(fn) {
- return (...args) =>
- fn(...args).catch(error => {
- this.setState({ error });
- });
-};
-
-export default catchError;