Don't error if grep matches nothing

This commit is contained in:
Bruno Bernardino
2024-04-04 18:17:05 +01:00
parent bcaec4e6d1
commit 5f45725d81

View File

@@ -391,7 +391,7 @@ async function searchFileContents(
clearTimeout(commandTimeout);
}
if (code !== 0) {
if (code > 1) {
if (stderr) {
throw new Error(new TextDecoder().decode(stderr));
}