esv: handle absence of search results with -s
previously this would throw an unhandled ESVException.
This commit is contained in:
parent
de08bf5c70
commit
11543da52f
1 changed files with 4 additions and 1 deletions
5
esv.d
5
esv.d
|
@ -198,7 +198,10 @@ key = %s
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sFlag) {
|
if (sFlag) {
|
||||||
writeln(esv.searchFormat(sFlag));
|
try
|
||||||
|
writeln(esv.searchFormat(sFlag));
|
||||||
|
catch (ESVException)
|
||||||
|
die("no results for search");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue