Skip to content

rename transform with output in existing output error message#356

Merged
mathieudpnt merged 1 commit intoProject-OSmOSE:mainfrom
Gautzilla:error-msg-rename
Mar 26, 2026
Merged

rename transform with output in existing output error message#356
mathieudpnt merged 1 commit intoProject-OSmOSE:mainfrom
Gautzilla:error-msg-rename

Conversation

@Gautzilla
Copy link
Contributor

When running a transform while a transform with the same name had already be run (meaning there already was an output with the same name), the error message was:

"Transform {transform.name} already exists. Please choose a different name, or delete it with the Project.delete_output() method."

Transform here was a bit misleading, as the problem is that a Transform with the same name had already be run: the issue really is that an output already has the name transform.name.
I changed the error message to this:

"Output {transform.name} already exists. Please choose a different transform name, or delete the existing output with the Project.delete_output() method."

@Gautzilla Gautzilla requested a review from mathieudpnt March 26, 2026 08:57
@Gautzilla Gautzilla self-assigned this Mar 26, 2026
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 98.806%. remained the same
when pulling ccd61c9 on Gautzilla:error-msg-rename
into a66afc9 on Project-OSmOSE:main.

@mathieudpnt mathieudpnt merged commit 452b23c into Project-OSmOSE:main Mar 26, 2026
2 checks passed
@Gautzilla Gautzilla deleted the error-msg-rename branch March 26, 2026 09:28
@Gautzilla Gautzilla restored the error-msg-rename branch March 26, 2026 10:21
Gautzilla added a commit that referenced this pull request Mar 26, 2026
@Gautzilla Gautzilla deleted the error-msg-rename branch March 26, 2026 10:22
@Gautzilla Gautzilla mentioned this pull request Mar 26, 2026
mathieudpnt pushed a commit that referenced this pull request Mar 26, 2026
* Revert "rename transform with output in existing output error message (#356)"

This reverts commit 452b23c.

* replace Project.rename_output() with Project.rename_transform_with_outputs(Ã)

* adapt Project.run() error msg for duplicate transform names

* replace delete_output() with delete_transform_with_outputs()

* fix error message expectation in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants