From a2ffd94bf89e0d32fe854413e58232fe226f3006 Mon Sep 17 00:00:00 2001 From: Farzad Qasim Date: Tue, 18 Jul 2017 15:01:33 +0100 Subject: [PATCH] Return readable error back to client --- src/fetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetcher.ts b/src/fetcher.ts index 1b22cde..345eeff 100644 --- a/src/fetcher.ts +++ b/src/fetcher.ts @@ -34,7 +34,7 @@ export const graphQLFetcher = (subscriptionsClient: SubscriptionClient, fallback variables: graphQLParams.variables, }, function (error, result) { if (error) { - observer.error(error); + observer.error(JSON.stringify(error)); } else { observer.next(result); }