|
|
| version 1.221, 2006/04/09 13:38:47 | version 1.223, 2006/06/09 19:09:19 |
|---|---|
| Line 399 static void _save(Request& r, MethodPara | Line 399 static void _save(Request& r, MethodPara |
| TableSeparators separators; | TableSeparators separators; |
| if(param_index<params.count()) { | if(param_index<params.count()) { |
| if(HashStringValue *options=params.as_no_junction(param_index++, "additional params must be hash").get_hash()) { | Value& voptions=params.as_no_junction(param_index++, "additional params must be hash"); |
| int valid_options=separators.load(*options); | if( voptions.is_defined() && !voptions.is_string() ) { |
| if(valid_options!=options->count()) | if(HashStringValue* options=voptions.get_hash()) { |
| int valid_options=separators.load(*options); | |
| if(valid_options!=options->count()) | |
| throw Exception("parser.runtime", | |
| 0, | |
| "invalid option passed"); | |
| } else { | |
| throw Exception("parser.runtime", | throw Exception("parser.runtime", |
| 0, | 0, |
| "invalid option passed"); | "additional params must be hash (did you spell mode parameter correctly?)"); |
| } else | } |
| throw Exception("parser.runtime", | } |
| 0, | |
| "additional params must be hash (did you spell mode parameter correctly?)"); | |
| } | } |
| if(param_index<params.count()) | if(param_index<params.count()) |
| throw Exception("parser.runtime", | throw Exception("parser.runtime", |