Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ export function formatError(error, fetchingSchema: boolean = false) {

function extractMessage(error) {
if (error instanceof Error) {
// Errors from apollo-link-http may include a "result" object, which is a JSON response from
// the server. We should surface that to the client
if (!!error['result'] && typeof error['result'] === 'object') {
return (error as any).result
}
return error.message
}

Expand Down