From 2cc0030e17037bfe75e9ff79e0d3b61c765359ad Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sun, 24 Apr 2016 12:18:31 +0800 Subject: [PATCH] return if lecical_cast fails --- src/page.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page.h b/src/page.h index c9bcaf6..d5c407f 100644 --- a/src/page.h +++ b/src/page.h @@ -887,8 +887,8 @@ namespace xmreg { } catch(boost::bad_lexical_cast &e) - { - cerr << search_text << " is not a number" << endl; + { + return result_html; } }