Skip to content

Commit

Permalink
Better error message in default type resolver (#152)
Browse files Browse the repository at this point in the history
* Better error message in default type resolver

* Fix format
  • Loading branch information
ardatan authored Feb 15, 2022
1 parent 8f8bed0 commit 7e9409f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,10 @@ function defaultResolveTypeFn(
}
}

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

/**
Expand Down

0 comments on commit 7e9409f

Please sign in to comment.