Shortened long lines.
Added error: tag to error message. Corrected output file format error message.
This commit is contained in:
@@ -116,7 +116,7 @@ int main (int argc, char **argv)
|
|||||||
} else if (0 == strcmp("toc", optarg)) {
|
} else if (0 == strcmp("toc", optarg)) {
|
||||||
oformat = TOC;
|
oformat = TOC;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "%s: error: unknown input file "
|
fprintf(stderr, "%s: error: unknown output file"
|
||||||
" format `%s'\n", progname, optarg);
|
" format `%s'\n", progname, optarg);
|
||||||
usage(1);
|
usage(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -331,7 +331,8 @@ int info (char *name, int format, int trackno, char *d_template, char *t_templat
|
|||||||
int ntrack;
|
int ntrack;
|
||||||
|
|
||||||
if (NULL == (cd = cf_parse(name, &format))) {
|
if (NULL == (cd = cf_parse(name, &format))) {
|
||||||
fprintf(stderr, "%s: input file error\n", name);
|
fprintf(stderr, "%s: error: unable to parse input file"
|
||||||
|
" `%s'\n", progname, name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -348,7 +349,7 @@ int info (char *name, int format, int trackno, char *d_template, char *t_templat
|
|||||||
} else if (0 < trackno && ntrack >= trackno) {
|
} else if (0 < trackno && ntrack >= trackno) {
|
||||||
cd_printf(t_template, cd, trackno);
|
cd_printf(t_template, cd, trackno);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "%s: track number out of range\n", progname);
|
fprintf(stderr, "%s: error: track number out of range\n", progname);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user