Skip to content

Commit a9ec21b regression new asset already exists#1966

Closed
lechristianfillon wants to merge 4 commits intocgwire:mainfrom
lechristianfillon:commit_a9ec21b_regression_new_asset_already_exists
Closed

Commit a9ec21b regression new asset already exists#1966
lechristianfillon wants to merge 4 commits intocgwire:mainfrom
lechristianfillon:commit_a9ec21b_regression_new_asset_already_exists

Conversation

@lechristianfillon
Copy link
Contributor

Problem
In this pull request (#1937), there's a change to the error handling when creating a character with an already existing name.
This change seems motivated by compliance with an ESLint rule regarding promises.
This fix results in a blocking error in this scenario.

Screen shot in issue description: #879

Solution
Looking more closely at the motivation related to ESLint, I see that it only applies to situations where Promise.reject is included in a .then() statement, which isn't the case here.
Reverting to the initial version eliminates the ESLint alert and corrects the regression. Therefore, I suggest we revert to the previous change.

@lechristianfillon
Copy link
Contributor Author

Sorry, I was late in pushing this correction; it has since been made by Nicolas in the PR #1964

@NicoPennec NicoPennec closed this Mar 9, 2026
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