Browse Source

Print error messages when loading data

master
Damien Goutte-Gattat 9 years ago
parent
commit
abf131b82f
  1. 4
      src/kmxtool.c

4
src/kmxtool.c

@ -284,7 +284,9 @@ main(int argc, char **argv)
if ( n < 1 )
err(EXIT_FAILURE, "cannot read data");
kmx_microx_load(midi, type->code, param, program, n);
if ( (n = kmx_microx_load(midi, type->code, param, program, n)) < 0 )
errx(EXIT_FAILURE, "cannot load data: %s",
kmx_microx_error(midi, n));
}
return EXIT_SUCCESS;

Loading…
Cancel
Save