better errors
This commit is contained in:
parent
1076c720df
commit
7d014832d8
@ -424,7 +424,6 @@ vtcacheglobal(VtCache *c, uchar score[VtScoreSize], int type)
|
|||||||
vtcachenread++;
|
vtcachenread++;
|
||||||
n = vtread(c->z, score, type, b->data, c->blocksize);
|
n = vtread(c->z, score, type, b->data, c->blocksize);
|
||||||
if(n < 0){
|
if(n < 0){
|
||||||
werrstr("vtread %V: %r", score);
|
|
||||||
if(chattyventi)
|
if(chattyventi)
|
||||||
fprint(2, "read %V: %r\n", score);
|
fprint(2, "read %V: %r\n", score);
|
||||||
b->iostate = BioVentiError;
|
b->iostate = BioVentiError;
|
||||||
|
|||||||
@ -1036,7 +1036,7 @@ filewrite1(VtFile *f, void *data, long count, vlong offset)
|
|||||||
|
|
||||||
vtfilegetentry(f, &e);
|
vtfilegetentry(f, &e);
|
||||||
if(count < 0 || offset < 0){
|
if(count < 0 || offset < 0){
|
||||||
werrstr("vtfilewrite: bad offset or count");
|
werrstr("bad offset or count");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user