From 876ca136b33715cc0bb242697fa760da4bcc30e3 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Wed, 11 Nov 2020 12:39:26 -0800 Subject: [PATCH] Throw instead of log error --- .../networks-tab/network-form/network-form.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/pages/settings/networks-tab/network-form/network-form.component.js b/ui/app/pages/settings/networks-tab/network-form/network-form.component.js index 4660c9f2e..327ff5fe7 100644 --- a/ui/app/pages/settings/networks-tab/network-form/network-form.component.js +++ b/ui/app/pages/settings/networks-tab/network-form/network-form.component.js @@ -182,10 +182,10 @@ export default class NetworkForm extends PureComponent { onClear() } } catch (error) { - log.error('Unexpected error during form submission.', error) this.setState({ isSubmitting: false, }) + throw error } }