From 169b0953ad91f22bb3b2bf2d80d87ebfbe30d45d Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 22 Mar 2018 21:11:15 -0400 Subject: yay --- frontend/lib/catchError.js | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 frontend/lib/catchError.js (limited to 'frontend/lib/catchError.js') 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; -- cgit v1.3