Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
chore: rename error prefix to match repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schmidt authored and DanielMSchmidt committed Jan 4, 2019
1 parent 1cdbcae commit 2268ab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/graphqlObservable-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ describe("graphqlObservable", function() {
"#",
{},
new Error(
"graphqlObservable error: resolver 'throwingResolver' throws this error: 'Error: my personal error'"
"reactive-graphql: resolver 'throwingResolver' throws this error: 'Error: my personal error'"
)
);
const result = graphqlObservable(query, fieldResolverSchema, {});
Expand Down
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,7 @@ export default function graphqlObservable<T = object>(
}

function throwObservable(error: string): Observable<any> {
const graphqlErrorMessage = `graphqlObservable error: ${error}`;
const graphqlError = new Error(graphqlErrorMessage);

return Observable.throw(graphqlError);
return Observable.throw(new Error(`reactive-graphql: ${error}`));
}

function buildResolveArgs(definition: FieldNode, context: object) {
Expand Down

0 comments on commit 2268ab1

Please sign in to comment.