aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/scan_name.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstate/scan_name.cpp')
-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;