File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -374,18 +374,22 @@ int main() {
374
374
cmd += " && " ;
375
375
cmd += exe_str;
376
376
cout << cmd << endl;
377
- system (cmd.c_str ());
377
+ int r = system (cmd.c_str ());
378
+ if (r != 0 ) {
379
+ std::cerr << " Could not execute " << cmd << std::endl;
380
+ }
378
381
379
382
// Move the figures to the documentation directory
380
383
fs::path figure_origin_svg = p.parent_path () / " example.svg" ;
381
384
if (fs::exists (figure_origin_svg)) {
382
385
if (!fs::exists (figure_destination_svg.parent_path ())) {
383
- fs::create_directories (figure_destination_svg.parent_path ());
386
+ fs::create_directories (
387
+ figure_destination_svg.parent_path ());
384
388
}
385
389
fs::rename (figure_origin_svg, figure_destination_svg);
386
390
} else {
387
- cout << " Could not find " << figure_origin_svg.filename () << " for "
388
- << executable.filename () << endl;
391
+ cout << " Could not find " << figure_origin_svg.filename ()
392
+ << " for " << executable.filename () << endl;
389
393
}
390
394
}
391
395
You can’t perform that action at this time.
0 commit comments