File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
apps/docs/resources/error Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type {
66 RootQueryTypeErrorsArgs ,
77 Service ,
88} from '~/__generated__/graphql'
9- import { ApiError , convertUnknownToApiError } from '~/app/api/utils'
9+ import { ApiError , convertUnknownToApiError , extractMessageFromAnyError } from '~/app/api/utils'
1010import { Result } from '~/features/helpers.fn'
1111import {
1212 createCollectionType ,
@@ -77,7 +77,13 @@ async function resolveErrors(
7777 code : args [ 0 ] . code ?? undefined ,
7878 } ,
7979 } )
80- return result . mapError ( ( error ) => new ApiError ( 'Failed to resolve error codes' , error ) )
80+ return result . mapError (
81+ ( error ) =>
82+ new ApiError (
83+ `Failed to resolve error codes: ${ extractMessageFromAnyError ( error ) } ` ,
84+ error
85+ )
86+ )
8187 }
8288 return await GraphQLCollectionBuilder . create <
8389 ErrorModel ,
You can’t perform that action at this time.
0 commit comments