Skip to content

centralize GraphQL error handling in nexus_integration#23101

Merged
IDCs merged 1 commit into
v2.0from
fix/app-443
May 11, 2026
Merged

centralize GraphQL error handling in nexus_integration#23101
IDCs merged 1 commit into
v2.0from
fix/app-443

Conversation

@IDCs
Copy link
Copy Markdown
Contributor

@IDCs IDCs commented May 11, 2026

Adds handleGraphError in nexus_integration/util.ts that reuses graphErrorContext to extract the error code and diagnostic context, logs that context before surfacing the notification, and returns the caller's fallback. Skip-codes, no-report-codes, allowReport, and notification id are configurable.

Migrates the simple / skip-on-code catches: onGetMyCollections, onGetNexusCollections, onResolveCollectionUrl, onGetModFiles, onModFileContents, onGetModInfo, onGetPreferences. Endpoints with bespoke per-code branching are left as-is.

Also fixes nexusGetCollections in INexusAPIExtension.ts, which declared PromiseLike<ICollection[]> but actually returned Partial[] | undefined.

fixes https://linear.app/nexus-mods/issue/APP-443
fixes #23077

Adds handleGraphError<T> in nexus_integration/util.ts that reuses
graphErrorContext to extract the error code and diagnostic context,
logs that context before surfacing the notification, and returns the
caller's fallback. Skip-codes, no-report-codes, allowReport, and
notification id are configurable.

Migrates the simple / skip-on-code catches: onGetMyCollections,
onGetNexusCollections, onResolveCollectionUrl, onGetModFiles,
onModFileContents, onGetModInfo, onGetPreferences. Endpoints with
bespoke per-code branching are left as-is.

Also fixes nexusGetCollections in INexusAPIExtension.ts, which
declared PromiseLike<ICollection[]> but actually returned
Partial<ICollection>[] | undefined.

fixes https://linear.app/nexus-mods/issue/APP-443
fixes #23077
@IDCs IDCs self-assigned this May 11, 2026
@IDCs IDCs requested a review from a team as a code owner May 11, 2026 06:01
@IDCs IDCs merged commit f7b69bd into v2.0 May 11, 2026
8 checks passed
@IDCs IDCs deleted the fix/app-443 branch May 11, 2026 07:25
pull Bot pushed a commit to A-Archives-and-Forks/Vortex that referenced this pull request May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

I get an error that says "Failed to get list of mods", but my game seemingly runs fine with the mods

2 participants