Skip to content

Commit

Permalink
Write xsl:message output to stdout instead of stderr (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl authored Dec 11, 2024
1 parent 2dcaa9a commit 0b4afb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function transformV2V3(source, version) {

const result = xalan("V2-to-V4-CSDL.xsl", "-IN", source, "-OUT", target);

if (result.stderr.length) console.error(result.stderr.toString());
if (result.stderr.length) console.log(result.stderr.toString());
if (result.status !== 0) process.exit(1);

transformV4(target, version, true);
Expand Down Expand Up @@ -160,7 +160,7 @@ function transformV4(source, version, deleteSource) {

const result = xalan("V4-CSDL-to-OpenAPI.xsl", ...params);

if (result.stderr.length) console.error(result.stderr.toString());
if (result.stderr.length) console.log(result.stderr.toString());
if (result.status !== 0) process.exit(1);

if (argv.values.pretty || argv.values["used-schemas-only"]) {
Expand Down

0 comments on commit 0b4afb4

Please sign in to comment.