diff --git a/gateway-js/src/supergraphManagers/UplinkSupergraphManager/loadSupergraphSdlFromStorage.ts b/gateway-js/src/supergraphManagers/UplinkSupergraphManager/loadSupergraphSdlFromStorage.ts index 25b8ba717..cb6982287 100644 --- a/gateway-js/src/supergraphManagers/UplinkSupergraphManager/loadSupergraphSdlFromStorage.ts +++ b/gateway-js/src/supergraphManagers/UplinkSupergraphManager/loadSupergraphSdlFromStorage.ts @@ -160,7 +160,7 @@ export async function loadSupergraphSdlFromStorage({ response = await result.json(); } catch (e) { // Bad response - throw new UplinkFetcherError(fetchErrorMsg + result.status + ' ' + e.message ?? e); + throw new UplinkFetcherError(fetchErrorMsg + result.status + ' ' + (e.message ?? e)); } if ('errors' in response) {