Skip to content

Commit

Permalink
readtags: fix some typos in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
AmaiKinono committed May 17, 2020
1 parent 4a742da commit edc2fc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dsl/sorter.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ int s_compare (const tagEntry * a, const tagEntry * b, SCode *code)
{
MIO *mioerr = mio_new_fp (stderr, NULL);

fprintf(stderr, "GOT ERROR in SORITING: %s: ",
fprintf(stderr, "GOT ERROR in SORTING: %s: ",
es_error_name (r));
es_print(es_error_get_object(r), mioerr);
putc('\n', stderr);
Expand All @@ -330,7 +330,7 @@ int s_compare (const tagEntry * a, const tagEntry * b, SCode *code)
{
MIO *mioerr = mio_new_fp (stderr, NULL);

fprintf(stderr, "Get unexpected value as the result of soriting: ");
fprintf(stderr, "Get unexpected value as the result of sorting: ");
es_print(r, mioerr);
putc('\n', stderr);
mio_unref(mioerr);
Expand Down
14 changes: 7 additions & 7 deletions extra-cmds/readtags-cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,15 +421,15 @@ extern int main (int argc, char **argv)
printSorterExpression (stdout, 0);
else
{
fprintf (stderr, "%s: unknown expression class for --%s option",
fprintf (stderr, "%s: unknown expression class for --%s option\n",
ProgramName, optname);
exit (1);

}
}
else
{
fprintf (stderr, "%s: missing expression class for --%s option",
fprintf (stderr, "%s: missing expression class for --%s option\n",
ProgramName, optname);
exit (1);
}
Expand Down Expand Up @@ -473,14 +473,14 @@ extern int main (int argc, char **argv)
SortMethod = 2;
else
{
fprintf (stderr, "%s: unknown sort method for --%s option",
fprintf (stderr, "%s: unknown sort method for --%s option\n",
ProgramName, optname);
exit (1);
}
}
else
{
fprintf (stderr, "%s: missing sort method for --%s option",
fprintf (stderr, "%s: missing sort method for --%s option\n",
ProgramName, optname);
exit (1);
}
Expand All @@ -494,7 +494,7 @@ extern int main (int argc, char **argv)
optname);
else
{
fprintf (stderr, "%s: missing filter expression for --%s option",
fprintf (stderr, "%s: missing filter expression for --%s option\n",
ProgramName, optname);
exit (1);
}
Expand All @@ -507,15 +507,15 @@ extern int main (int argc, char **argv)
optname);
else
{
fprintf (stderr, "%s: missing sorter expression for --%s option",
fprintf (stderr, "%s: missing sorter expression for --%s option\n",
ProgramName, optname);
exit (1);
}
}
#endif
else
{
fprintf (stderr, "%s: unknown long options: --%s",
fprintf (stderr, "%s: unknown long options: --%s\n",
ProgramName, optname);
exit (1);
break;
Expand Down

0 comments on commit edc2fc0

Please sign in to comment.