diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-09-12 14:43:53 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-09-12 14:43:53 +0200 |
commit | 4d14c5c1e28b5f0f99eb31a28a01976da7787c30 (patch) | |
tree | 6780619067fafc362dd799e04506549f19729491 /fb-helper.c.in | |
parent | 6baf96104ac14fd2854bcc740ae0035844cf1cc0 (diff) |
improve error handling
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb-helper.c.in')
-rw-r--r-- | fb-helper.c.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fb-helper.c.in b/fb-helper.c.in index bc5a1b7..d77b0b2 100644 --- a/fb-helper.c.in +++ b/fb-helper.c.in @@ -1,7 +1,7 @@ /* * Description: This is intended as a helper script for fb only. * - * Synopsis: ./fb-upload <action> <URL> <file> + * Synopsis: ./fb-helper <action> <URL> <file> * * action can be: * d = download <URL> @@ -182,7 +182,8 @@ int main(int argc, char *argv[]) if (file) { if(stat(file, &statbuf) == -1) { - perror("fb-upload"); + fprintf(stderr, "fb-helper: %s: ", file); + perror(NULL); return 1; } |