diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-03-22 21:11:15 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-03-22 21:11:15 -0400 |
| commit | 169b0953ad91f22bb3b2bf2d80d87ebfbe30d45d (patch) | |
| tree | e66454fb1055440996ae01cb980394d84715bf59 /frontend/lib/catchError.js | |
| parent | a6af043686e4375d7944e91cae3d5b63c59edab0 (diff) | |
yay
Diffstat (limited to 'frontend/lib/catchError.js')
| -rw-r--r-- | frontend/lib/catchError.js | 8 |
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; |
