]> git.donarmstrong.com Git - samtools.git/commitdiff
Wording of error messages
authorpeterjc <p.j.a.cock@googlemail.com>
Mon, 14 May 2012 15:33:52 +0000 (16:33 +0100)
committerpeterjc <p.j.a.cock@googlemail.com>
Tue, 19 Jun 2012 14:54:51 +0000 (15:54 +0100)
padding.c

index 19b95a9fff07a81759343ee165c2abd3f2d4a0e3..d5fd15fb6a7cf49e782d506ebe74201748f9467e 100644 (file)
--- a/padding.c
+++ b/padding.c
@@ -284,18 +284,18 @@ int main_pad2unpad(int argc, char *argv[])
        }
        // open file handlers
        if ((in = samopen(argv[optind], in_mode, fn_list)) == 0) {
-               fprintf(stderr, "[depad] fail to open \"%s\" for reading.\n", argv[optind]);
+               fprintf(stderr, "[depad] failed to open \"%s\" for reading.\n", argv[optind]);
                ret = 1;
                goto depad_end;
        }
        if (in->header == 0) {
-               fprintf(stderr, "[depad] fail to read the header from \"%s\".\n", argv[optind]);
+               fprintf(stderr, "[depad] failed to read the header from \"%s\".\n", argv[optind]);
                ret = 1;
                goto depad_end;
        }
        /* TODO - The reference sequence lengths in the BAM + SAM headers should be updated */
        if ((out = samopen(fn_out? fn_out : "-", out_mode, in->header)) == 0) {
-               fprintf(stderr, "[depad] fail to open \"%s\" for writing.\n", fn_out? fn_out : "standard output");
+               fprintf(stderr, "[depad] failed to open \"%s\" for writing.\n", fn_out? fn_out : "standard output");
                ret = 1;
                goto depad_end;
        }