Skip to content
Snippets Groups Projects
Commit b1984f5d authored by David Schäfer's avatar David Schäfer
Browse files

Fix error message of copyField

parent 699d58d4
No related branches found
No related tags found
6 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!400Relase 2.0.1
Pipeline #55206 passed with stage
in 2 minutes and 48 seconds
......@@ -48,7 +48,7 @@ def copyField(
Flags shape may have changed relatively to the flags input.
"""
if target in flags.columns.union(data.columns):
raise ValueError(f"{field}: field already exist")
raise ValueError(f"'{target}' already exist")
data[target] = data[field].copy()
flags.history[target] = flags.history[field].copy()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment