From af42bb8e6774c0cecb0a826d3e3dad9fd70dfa7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Fri, 17 Jul 2015 15:41:09 +0200 Subject: [PATCH] error handling first cut --- .eslintrc | 6 +-- index.html | 3 -- js/actions/application_actions.js | 4 +- js/actions/coa_actions.js | 4 +- js/actions/edition_actions.js | 2 +- js/actions/edition_list_actions.js | 1 - js/actions/license_actions.js | 2 +- js/actions/loan_contract_actions.js | 2 +- js/actions/piece_actions.js | 2 +- js/actions/piece_list_actions.js | 3 +- js/actions/user_actions.js | 4 +- js/actions/wallet_settings_actions.js | 2 +- js/actions/whitelabel_actions.js | 8 +++- js/app.js | 14 +++---- .../accordion_list_item.js | 2 +- .../react_s3_fine_uploader.js | 1 + js/components/header.js | 5 ++- js/components/register_piece.js | 2 +- js/constants/application_constants.js | 6 ++- js/utils/error_utils.js | 39 +++++++++++++++++++ js/utils/general_utils.js | 4 ++ js/utils/requests.js | 35 ++++++----------- package.json | 1 + ....scss => ascribe_global_notification.scss} | 0 sass/main.scss | 2 +- 25 files changed, 95 insertions(+), 59 deletions(-) create mode 100644 js/utils/error_utils.js rename sass/{ascribe-global-notification.scss => ascribe_global_notification.scss} (100%) diff --git a/.eslintrc b/.eslintrc index ac35bb10..fa3aca98 100644 --- a/.eslintrc +++ b/.eslintrc @@ -32,10 +32,10 @@ "react/wrap-multilines": 1 }, "globals": { - "Raven": true, "Intercom": true, - "fetch": true - } + "fetch": true, + "require": true + }, "plugins": [ "react" ], diff --git a/index.html b/index.html index 39ebca26..a70a70db 100644 --- a/index.html +++ b/index.html @@ -51,9 +51,6 @@ ga('create', 'UA-60614729-2', 'auto'); - - -