Skip to content

Commit 006662a

Browse files
Tweak message
Signed-off-by: Matthew Wilson <[email protected]>
1 parent 6b80152 commit 006662a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

__tests__/api/BundlePush/BundlePusher.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,8 +1538,7 @@ describe("BundlePusher01", () => {
15381538
expect(consoleText).not.toContain("Querying NODEJSAPP resources over CMCI");
15391539
expect(consoleText).not.toContain("zowe cics get resource CICSNodejsapp");
15401540
expect(consoleText).not.toContain("An attempt to query the remote CICSplex using the cics plug-in has failed");
1541-
expect(consoleText).toContain("Consider examining the JESMSGLG, MSGUSR, SYSPRINT and SYSOUT spool files for job ID JOB12345 for more information," +
1542-
" or consult your CICS system programmer.");
1541+
expect(consoleText).toContain("DFHDPLOY output implied the bundle failed to install.");
15431542
expect(cmciSpy).toHaveBeenCalledTimes(1);
15441543
});
15451544
});

src/api/BundlePush/BundlePusher.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,12 @@ export class BundlePusher {
393393
let deployMessages = await this.generateGeneralDiagnostics(cicsSession);
394394

395395
if (deployError !== undefined && dfhdployOutput.indexOf("DFHRL2067") === -1) {
396-
// If we have an, but DFHDPLOY did not report that some bundleparts are disabled,
396+
// If we have an error, but DFHDPLOY did not report that some bundleparts are disabled,
397397
// we can assume bundle didn't install at all. In this case skip generation of
398398
// Node.js diagnostics.
399-
deployMessages += "Consider examining the JESMSGLG, MSGUSR, SYSPRINT and SYSOUT spool files for job ID JOB12345 for more information, ";
400-
deployMessages += "or consult your CICS system programmer.";
399+
deployMessages += "DFHDPLOY output implied the bundle failed to install. Check the output above for further information. ";
400+
deployMessages += "Consider examining the JESMSGLG, MSGUSR, SYSPRINT and SYSOUT spool files of the CICS region job, ";
401+
deployMessages += "or consult your CICS system programmer.\n";
401402
} else if (deployMessages !== "" && bundle.containsDefinitionsOfType("http://www.ibm.com/xmlns/prod/cics/bundle/NODEJSAPP")) {
402403
// Generate additional diagnostic output for Node.js
403404
deployMessages += await this.generateNodejsSpecificDiagnostics(cicsSession);

0 commit comments

Comments
 (0)