Skip to content

Commit

Permalink
refactor: enhance error undefined message
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanJu committed Apr 12, 2023
1 parent 8730081 commit 8389312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query-core/src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export class Query<
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`,
)
}
onError(new Error('undefined') as any)
onError(new Error(`${this.queryHash} data is undefine11d`) as any)
return
}

Expand Down

0 comments on commit 8389312

Please sign in to comment.