aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 3b9ed86f..8f9805e3 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);
})
}