aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-30 03:16:28 +0000
committerDavid Robillard <d@drobilla.net>2011-04-30 03:16:28 +0000
commit34aa98fb074dcc7547b79b078d0faf9718a71b4d (patch)
treeb7412f24a7065fa75f8a62241f0a76edf0f41c9d /src/serdi.c
parent253f6ba9c97328199f5b4c22d8e68a393abcf038 (diff)
downloadserd-34aa98fb074dcc7547b79b078d0faf9718a71b4d.tar.gz
serd-34aa98fb074dcc7547b79b078d0faf9718a71b4d.tar.bz2
serd-34aa98fb074dcc7547b79b078d0faf9718a71b4d.zip
Consistent error messages
git-svn-id: http://svn.drobilla.net/serd/trunk@152 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 7df0d363..0f843344 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -133,7 +133,7 @@ main(int argc, char** argv)
break;
} else if (argv[a][1] == 'o') {
if (++a == argc) {
- fprintf(stderr, "missing value for -o\n");
+ fprintf(stderr, "Missing value for -o\n");
return 1;
}
if (!strcmp(argv[a], "turtle")) {
@@ -141,11 +141,11 @@ main(int argc, char** argv)
} else if (!strcmp(argv[a], "ntriples")) {
output_syntax = SERD_NTRIPLES;
} else {
- fprintf(stderr, "unknown output format `%s'\n", argv[a]);
+ fprintf(stderr, "Unknown output format `%s'\n", argv[a]);
return 1;
}
} else {
- fprintf(stderr, "unknown option `%s'\n", argv[a]);
+ fprintf(stderr, "Unknown option `%s'\n", argv[a]);
return print_usage(argv[0], true);
}
}
@@ -157,7 +157,7 @@ main(int argc, char** argv)
if (serd_uri_string_has_scheme(input)) {
// INPUT is an absolute URI, ensure it a file and chop scheme
if (strncmp((const char*)input, "file:", 5)) {
- fprintf(stderr, "unsupported URI scheme `%s'\n", input);
+ fprintf(stderr, "Unsupported URI scheme `%s'\n", input);
return 1;
#ifdef __WIN32__
} else if (!strncmp((const char*)input, "file:///", 8)) {
@@ -172,7 +172,7 @@ main(int argc, char** argv)
}
in_fd = fopen((const char*)input, "r");
if (!in_fd) {
- fprintf(stderr, "failed to open file %s\n", input);
+ fprintf(stderr, "Failed to open file %s\n", input);
return 1;
}
}
@@ -183,7 +183,7 @@ main(int argc, char** argv)
if (a < argc) { // Base URI given on command line
const uint8_t* const in_base_uri = (const uint8_t*)argv[a++];
if (!serd_uri_parse((const uint8_t*)in_base_uri, &base_uri)) {
- fprintf(stderr, "invalid base URI `%s'\n", argv[2]);
+ fprintf(stderr, "Invalid base URI <%s>\n", argv[2]);
return 1;
}
base_uri_str = in_base_uri;
@@ -194,7 +194,7 @@ main(int argc, char** argv)
}
if (!serd_uri_parse(base_uri_str, &base_uri)) {
- fprintf(stderr, "invalid base URI `%s'\n", base_uri_str);
+ fprintf(stderr, "Invalid base URI <%s>\n", base_uri_str);
}
FILE* out_fd = stdout;