--- parser3/src/classes/hash.C 2021/11/04 21:31:15 1.151 +++ parser3/src/classes/hash.C 2021/11/05 21:25:38 1.153 @@ -17,7 +17,7 @@ #include "pa_vbool.h" #include "pa_vmethod_frame.h" -volatile const char * IDENT_HASH_C="$Id: hash.C,v 1.151 2021/11/04 21:31:15 moko Exp $"; +volatile const char * IDENT_HASH_C="$Id: hash.C,v 1.153 2021/11/05 21:25:38 moko Exp $"; // class @@ -728,8 +728,8 @@ static void _rename(Request& r, MethodPa const String& key_to=params.as_string(1, "to key must be string"); hash.rename(key_from, key_to); - } else { - HashStringValue* names=params.as_hash(0); + } else { + HashStringValue* names=params.as_hash(0,"single parameter"); for(HashStringValue::Iterator i(*names); i; i.next()) hash.rename(i.key(), i.value()->as_string());