Skip to content

Commit

Permalink
fix: gdiag should not failed when plantuml.jar fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorin committed Jul 8, 2020
1 parent 65b4331 commit 652bdf9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gdiag.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const javaCmd = argv.j;
async function plantuml(file) {
await exec(`${javaCmd} -jar ${techDir}/plantuml.jar ${file}`, {
stdio: process.stdout
});
}).catch(error => log.warn(error.message));
}

async function download(url, destination) {
Expand Down
1 change: 1 addition & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ GREP "parse directory \[test\]"
GREP "process source \[wd1/src1.puml\]"
GREP "process source \[wd1/src2.puml\]"
GREP "process source \[wd2/src1.puml\]"
GREP "warn: Command failed: java -jar .gdiag/plantuml.jar test/wd2/empty.puml"

RUNS stat test/wd1/src1-diag1.png
RUNS stat test/wd1/src2-diag1.png
Expand Down
Empty file added test/wd2/empty.puml
Empty file.

0 comments on commit 652bdf9

Please sign in to comment.