fix: if we have an error throw before we try to read anything
This commit is contained in:
parent
e64144da6a
commit
02d281162b
|
@ -62,10 +62,10 @@ export default class IPFSProvider implements ContentProvider {
|
|||
err = "404";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (err) {
|
||||
throw new Error(err);
|
||||
}
|
||||
if (err) {
|
||||
throw new Error(err);
|
||||
}
|
||||
|
||||
let bufferRead = 0;
|
||||
|
|
Loading…
Reference in New Issue