We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77fc0b6 commit c46bf86Copy full SHA for c46bf86
components/bigdatacorp/actions/get-address-data/get-address-data.mjs
@@ -34,7 +34,12 @@ export default {
34
},
35
});
36
37
- $.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${response.Status[this.dataset][0].Message}`);
+ const status = response.Status[this.dataset[0].Message;
38
+ if (status === "OK") {
39
+ $.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${status}`);
40
+ } else {
41
+ throw new Error(status);
42
+ }
43
44
return response;
45
0 commit comments