esv: handle absence of search results with -s

previously this would throw an unhandled ESVException.
This commit is contained in:
Jeremy Baxter 2024-03-08 11:26:36 +13:00
parent de08bf5c70
commit 11543da52f

5
esv.d
View file

@ -198,7 +198,10 @@ key = %s
}
if (sFlag) {
writeln(esv.searchFormat(sFlag));
try
writeln(esv.searchFormat(sFlag));
catch (ESVException)
die("no results for search");
return 0;
}