We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6358867 commit 809bc08Copy full SHA for 809bc08
packages/load/src/load-typedefs.ts
@@ -148,14 +148,13 @@ function prepareResult({
148
149
export class NoTypeDefinitionsFound extends Error {
150
constructor(pointerList: string[]) {
151
- const rows: string[] = [];
152
- rows.push('Unable to find any GraphQL type definitions for the following pointers:');
153
- pointerList.forEach(pointer => {
154
- rows.push(`- ${pointer}`);
155
- });
156
- const message = rows.join('\n');
157
-
158
- super(message);
+ super(`
+ Unable to find any GraphQL type definitions for the following pointers:
+ ${pointerList.map(
+ p => `
+ - ${p}
+ `,
+ )}`);
159
this.name = 'NoTypeDefinitionsFound';
160
}
161
0 commit comments