Skip to content

Fix common API error with promise reject#1614

Merged
prxt6529 merged 2 commits into
mainfrom
fix-common-api-error-reject-promise
Nov 21, 2025
Merged

Fix common API error with promise reject#1614
prxt6529 merged 2 commits into
mainfrom
fix-common-api-error-reject-promise

WIP

a3dd0a0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 21, 2025 in 1m 10s

Annotations

Check failure on line 55 in services/api/common-api.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `throw error` over `return Promise.reject(error)`.

See more on https://sonarcloud.io/project/issues?id=6529-Collections_6529seize-frontend&issues=AZqlvItZ9MqIcEQ4SFAX&open=AZqlvItZ9MqIcEQ4SFAX&pullRequest=1614

Check warning on line 55 in services/api/common-api.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected the Promise rejection reason to be an Error.

See more on https://sonarcloud.io/project/issues?id=6529-Collections_6529seize-frontend&issues=AZqlvItZ9MqIcEQ4SFAW&open=AZqlvItZ9MqIcEQ4SFAW&pullRequest=1614