Commit 26b1ce15 authored by Andrea Zoli's avatar Andrea Zoli
Browse files

Improve getFieldIndex error message.

parent ccac5bc4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -729,7 +729,8 @@ word PartOfPacket::getFieldIndex(string fieldname) {
		if(fieldname == fname)
			return i;
	}
	throw new PacketException("getFieldIndex(fieldname) error: no field found in this section");
	string errorStr = "getFieldIndex("+fieldname+") error: no field found in section '"+popName+"'";
	throw new PacketException(errorStr.c_str());
	return index;
}