From 7427bff0e57ec65ff838f8917be5a96550a88e11 Mon Sep 17 00:00:00 2001 From: Bryce Allen Date: Sat, 28 Mar 2015 17:33:28 -0500 Subject: [PATCH] add item not found handler --- web/index-static.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/index-static.html b/web/index-static.html index e7e668a..d7ed23d 100644 --- a/web/index-static.html +++ b/web/index-static.html @@ -56,6 +56,9 @@ $.get(DATA_PATH + encode_utf8(item_name) + ".txt", function(data) { $("#output").text(data); + }).fail( + function() { + $("#output").text("Error: item '" + item_name + "' not found"); }); }