diff --git a/src/PartOfPacket.cpp b/src/PartOfPacket.cpp index 5f1f6d8889581f576c6cdaa92f0d639d05e7fcff..533e15d9974d093d19aa4ef7e6b6424995e1af5f 100644 --- a/src/PartOfPacket.cpp +++ b/src/PartOfPacket.cpp @@ -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; }