Skip to content

Commit 9c67068

Browse files
committed
Fix bug referencing an inexistent variable
1 parent cd00eee commit 9c67068

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/client.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,10 @@ export class SalesforceClient {
167167

168168
const { data } = result;
169169
if (!wasSuccessfulSoapRequest(data)) {
170+
const msg = 'Could not setup remote site in Salesforce';
170171
const error = {
171-
msg: 'Could not setup remote site in Salesforce',
172172
data,
173+
msg,
173174
};
174175
console.error(msg);
175176
console.error(data);
@@ -220,9 +221,10 @@ export class SalesforceClient {
220221

221222
const { data } = result;
222223
if (!wasSuccessfulSoapRequest(data)) {
224+
const msg = 'Could not deploy Apex code to Salesforce';
223225
const error = {
224-
msg: 'Could not deploy Apex code to Salesforce',
225226
data,
227+
msg,
226228
};
227229
console.error(msg);
228230
console.error(data);

0 commit comments

Comments
 (0)