Skip to content

Commit c2e3d69

Browse files
cejkato2hynekkar
andauthored
pytrap: improved error message
Co-authored-by: Karel Hynek <59375283+hynekkar@users.noreply.github.com>
1 parent 0e0a01b commit c2e3d69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pytrap/src/unirecmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ UnirecTemplate_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
21002100
PyErr_SetString(TrapError, "ur_define_set_of_fields() failed due to bad name of some field in the template. The name must start with letter [a-zA-Z] and can contain only [a-zA-Z0-9_].");
21012101
break;
21022102
case UR_E_TYPE_MISMATCH:
2103-
PyErr_SetString(TrapError, "ur_define_set_of_fields() failed because some field with the existing name is being redefined with a different type, which is not allowed.");
2103+
PyErr_SetString(TrapError, "ur_define_set_of_fields() failed because some field with the existing name is being redefined (even in a different NEMEA module due to global context) with a different type, which is not allowed.");
21042104
break;
21052105
case UR_E_MEMORY:
21062106
PyErr_SetString(TrapError, "ur_define_set_of_fields() failed due to memory allocation error.");

0 commit comments

Comments
 (0)