diff --git a/map.c b/map.c index 1ef4c1f..e12a539 100644 --- a/map.c +++ b/map.c @@ -173,8 +173,11 @@ int func_map(int argc, char *argv[], int mode) if (!ipx_init()) argc = 1; if (!parse_argv(drvstr, &nwpath, argc, argv, 0, mode)) { if (*(nwpath.path) || mode==1) { - if (do_map(*drvstr - 'A', &nwpath, mode)< 0) - fprintf(stderr, "MAP Error\n"); + { + int rc = do_map(*drvstr - 'A', &nwpath, mode); + if (rc < 0) + fprintf(stderr, "MAP Error rc=%d\n", rc); + } } if (mode != 1) show_map(drvstr);