aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-26 17:06:03 +0000
committerlloyd <[email protected]>2009-12-26 17:06:03 +0000
commitb409b27f7ce1b0819049667821b5e5ea5d520965 (patch)
tree236257d96110800ea67aa8ee5de84d5c8f3b7657 /src/libstate
parent4400704b743fdf13e903c228cec5a20fce265a5d (diff)
New SCAN decoding err string was misleading in one case
Diffstat (limited to 'src/libstate')
-rw-r--r--src/libstate/scan_name.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstate/scan_name.cpp b/src/libstate/scan_name.cpp
index ded1e97b7..861934200 100644
--- a/src/libstate/scan_name.cpp
+++ b/src/libstate/scan_name.cpp
@@ -104,7 +104,10 @@ SCAN_Name::SCAN_Name(const std::string& algo_spec)
if(accum.second != "")
name.push_back(deref_aliases(accum));
- if(level != 0 || name.size() == 0)
+ if(level != 0)
+ throw Decoding_Error(decoding_error + "Missing close paren");
+
+ if(name.size() == 0)
throw Decoding_Error(decoding_error + "Empty name");
alg_name = name[0].second;