Skip to content

Commit 7e9409f

Browse files
authored
Better error message in default type resolver (#152)
* Better error message in default type resolver * Fix format
1 parent 8f8bed0 commit 7e9409f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/execution.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,10 @@ function defaultResolveTypeFn(
15021502
}
15031503
}
15041504

1505-
throw new Error(`Could not resolve type of ${value}`);
1505+
throw new Error(
1506+
`Could not resolve the object type in possible types of ${abstractType.name} for the value: ` +
1507+
inspect(value)
1508+
);
15061509
}
15071510

15081511
/**

0 commit comments

Comments
 (0)