tbetter errors - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 7d014832d8926780752591a74b8c5a2a08c30de4
 (DIR) parent 1076c720dff8ea5f05dfc8f5c7c1cd192330eb63
 (HTM) Author: rsc <devnull@localhost>
       Date:   Wed, 14 Dec 2005 20:06:43 +0000
       
       better errors
       
       Diffstat:
         M src/libventi/cache.c                |       1 -
         M src/libventi/file.c                 |       2 +-
       
       2 files changed, 1 insertion(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/libventi/cache.c b/src/libventi/cache.c
       t@@ -424,7 +424,6 @@ vtcacheglobal(VtCache *c, uchar score[VtScoreSize], int type)
                vtcachenread++;
                n = vtread(c->z, score, type, b->data, c->blocksize);
                if(n < 0){
       -                werrstr("vtread %V: %r", score);
                        if(chattyventi)
                                fprint(2, "read %V: %r\n", score);
                        b->iostate = BioVentiError;
 (DIR) diff --git a/src/libventi/file.c b/src/libventi/file.c
       t@@ -1036,7 +1036,7 @@ filewrite1(VtFile *f, void *data, long count, vlong offset)
        
                vtfilegetentry(f, &e);
                if(count < 0 || offset < 0){
       -                werrstr("vtfilewrite: bad offset or count");
       +                werrstr("bad offset or count");
                        return -1;
                }