pricecharts

track prices of consumer electronics
Log | Files | Refs | README

commit 9c7e81584a8132d1adcceca88902ed03b3bdef9f
parent 97fe05ec288561ad0e62c60ccfd9bce7dee16009
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Mon, 10 Nov 2014 00:02:51 -0700

search: simplify and correct template error handling

Diffstat:
Msearch.pl | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/search.pl b/search.pl @@ -72,10 +72,7 @@ while ($request->Accept() >= 0) { results => $products }; - if ($template->process("search.html", $vars)) { - print "Template error:\n"; - print $template->error(); - } + $template->process("search.html", $vars) || print $template->error(); } print ftime() . "shutting down\n";