aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src')
-rw-r--r--ui-react/src/api/LoopService.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-react/src/api/LoopService.js b/ui-react/src/api/LoopService.js
index 3b9ed86fa..8f9805e33 100644
--- a/ui-react/src/api/LoopService.js
+++ b/ui-react/src/api/LoopService.js
@@ -233,9 +233,9 @@ export default class LoopService {
return response.text();
}
})
- .then(function (object) {
+ .catch(function (error) {
console.error("Add Operational Policy query failed");
- throw new Error(object);
+ throw new Error(error);
})
}