Skip to content

Commit 66d274f

Browse files
committed
rc in error message
1 parent 9cea1ee commit 66d274f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

__tests__/api/BundlePush/BundlePusher.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ describe("BundlePusher01", () => {
415415

416416
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", true,
417417
"A problem occurred attempting to run 'if [ \"$(ls)\" ]; then rm -r *; fi' in remote directory '/u/ThisDoesNotExist/12345678'. " +
418-
"Problem is: The output from the remote command implied that an error occurred.");
418+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
419419

420420
expect(consoleText).toContain("Ssh command exit with non zero status");
421421
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -434,7 +434,7 @@ describe("BundlePusher01", () => {
434434

435435
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", true,
436436
"A problem occurred attempting to run 'if [ \"$(ls)\" ]; then rm -r *; fi' in remote directory '/u/ThisDoesNotExist/12345678'. " +
437-
"Problem is: The output from the remote command implied that an error occurred.");
437+
"Problem is: The output from the remote command implied that an error occurred, return code 127");
438438

439439
expect(consoleText).toContain("Injected FSUM9195 error message");
440440
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -453,7 +453,7 @@ describe("BundlePusher01", () => {
453453

454454
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", true,
455455
"A problem occurred attempting to run 'if [ \"$(ls)\" ]; then rm -r *; fi' in remote directory '/u/ThisDoesNotExist/12345678'. " +
456-
"Problem is: The output from the remote command implied that an error occurred.");
456+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
457457

458458
expect(consoleText).toContain("Injected FSUM9195 and FSUM9196 error message");
459459
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -647,7 +647,7 @@ describe("BundlePusher01", () => {
647647
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", false,
648648
"A problem occurred attempting to run 'export PATH=\"$PATH:/usr/lpp/IBM/cnj/IBM/node-latest-os390-s390x/bin\" " +
649649
"&& npm install' in remote directory '/u/ThisDoesNotExist/12345678'. " +
650-
"Problem is: The output from the remote command implied that an error occurred.");
650+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
651651

652652
expect(consoleText).toContain("Injected stdout error message");
653653
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -680,7 +680,7 @@ describe("BundlePusher01", () => {
680680
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", false,
681681
"A problem occurred attempting to run 'export PATH=\"$PATH:/usr/lpp/IBM/cnj/IBM/node-latest-os390-s390x/bin\" " +
682682
"&& npm install' in remote directory '/u/ThisDoesNotExist/12345678'. " +
683-
"Problem is: The output from the remote command implied that an error occurred.");
683+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
684684

685685
expect(consoleText).toContain("Injected FSUM7351 not found message");
686686
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -713,7 +713,7 @@ describe("BundlePusher01", () => {
713713
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", false,
714714
"A problem occurred attempting to run 'export PATH=\"$PATH:/usr/lpp/IBM/cnj/IBM/node-latest-os390-s390x/bin\" " +
715715
"&& npm install' in remote directory '/u/ThisDoesNotExist/12345678'. " +
716-
"Problem is: The output from the remote command implied that an error occurred.");
716+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
717717

718718
expect(consoleText).toContain("Injected npm ERR! Exit status 1 message");
719719
expect(zosMFSpy).toHaveBeenCalledTimes(1);

src/api/BundlePush/BundlePusher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export class BundlePusher {
395395
if (this.params.arguments.verbose !== true) {
396396
this.params.response.console.log(Buffer.from(this.sshOutputText));
397397
}
398-
throw new Error("The output from the remote command implied that an error occurred.");
398+
throw new Error("The output from the remote command implied that an error occurred, return code " + shell + ".");
399399
}
400400
}
401401
catch (error) {

0 commit comments

Comments
 (0)