From f2381688c5cfdee1b36e8d4db41fc7ca3c922f9c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 6 Jun 2020 18:42:21 +0200 Subject: [PATCH] parser:: number missing exception now includes where() --- util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.cpp b/util.cpp index 771834a8..91225a46 100644 --- a/util.cpp +++ b/util.cpp @@ -363,7 +363,7 @@ cld exp_parser::parse(int prio) { else if(number == "i") res = cld(0, 1); else if(number == "p" || number == "pi") res = M_PI; else if(number == "" && next() == '-') { at++; res = -parse(prio); } - else if(number == "") throw hr_parse_exception("number missing"); + else if(number == "") throw hr_parse_exception("number missing, " + where()); else if(number == "s") res = ticks / 1000.; else if(number == "ms") res = ticks; else if(number[0] == '0' && number[1] == 'x') res = strtoll(number.c_str()+2, NULL, 16);