author | Michael Krelin <hacker@klever.net> | 2005-03-31 15:15:06 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-03-31 15:15:06 (UTC) |
commit | 5b50415afdb7b708874293ac7047b9b70de78e59 (patch) (unidiff) | |
tree | 73fbe37d86aba774c47ed2a85eb4b5845f7c5da3 /src | |
parent | ace26447603d3f7ecd82fd3910174f603c2c7464 (diff) | |
download | kingate-5b50415afdb7b708874293ac7047b9b70de78e59.zip kingate-5b50415afdb7b708874293ac7047b9b70de78e59.tar.gz kingate-5b50415afdb7b708874293ac7047b9b70de78e59.tar.bz2 |
1. added a brief brief summary of changes
2. more descriptive exception thrown
-rw-r--r-- | src/cgi_interface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgi_interface.cc b/src/cgi_interface.cc index ffbd2bf..af5c020 100644 --- a/src/cgi_interface.cc +++ b/src/cgi_interface.cc | |||
@@ -4,13 +4,13 @@ | |||
4 | namespace kingate { | 4 | namespace kingate { |
5 | 5 | ||
6 | bool cgi_interface::has_meta(const string& n) const { | 6 | bool cgi_interface::has_meta(const string& n) const { |
7 | return metavars.find(n) != metavars.end(); | 7 | return metavars.find(n) != metavars.end(); |
8 | } | 8 | } |
9 | const string& cgi_interface::get_meta(const string& n) const { | 9 | const string& cgi_interface::get_meta(const string& n) const { |
10 | metavars_t::const_iterator rv = metavars.find(n); | 10 | metavars_t::const_iterator rv = metavars.find(n); |
11 | if(rv == metavars.end()) | 11 | if(rv == metavars.end()) |
12 | throw exception_notfound(CODEPOINT,"no such meta-variable"); | 12 | throw exception_notfound(CODEPOINT,string("no such meta-variable ('")+n+"')"); |
13 | return rv->second; | 13 | return rv->second; |
14 | } | 14 | } |
15 | 15 | ||
16 | } | 16 | } |