Skip to content

Commit c64ccff

Browse files
committed
Fix usage of node's status function in configuration node
1 parent f2bc161 commit c64ccff

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/magento-eqp-config.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,7 @@ export class MagentoEQPConfig extends RedNode {
2929
this.createNode(config);
3030

3131
if (!(this.credentials.appId && this.credentials.appSecret)) {
32-
this.status({
33-
fill: 'red',
34-
shape: 'ring',
35-
text: `App ID or secret missing`
36-
});
37-
38-
return;
32+
throw new Error('App ID or secret missing');
3933
}
4034

4135
this.appId = this.credentials.appId;

0 commit comments

Comments
 (0)