Don't error if grep matches nothing
This commit is contained in:
@@ -391,7 +391,7 @@ async function searchFileContents(
|
|||||||
clearTimeout(commandTimeout);
|
clearTimeout(commandTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (code !== 0) {
|
if (code > 1) {
|
||||||
if (stderr) {
|
if (stderr) {
|
||||||
throw new Error(new TextDecoder().decode(stderr));
|
throw new Error(new TextDecoder().decode(stderr));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user