Skip to content

Commit

Permalink
Fix template strings usage in guessSchemaByRootField error message (#936
Browse files Browse the repository at this point in the history
)

* Fix template strings usage in guessSchemaByRootField error message

* Changelog update
  • Loading branch information
nagelflorian authored and hwillson committed Sep 7, 2018
1 parent a6a535d commit 4e75f88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Change log

### vNEXT
### 4.0.0

* ...
* Fix template strings usage in guessSchemaByRootField error message. <br/>
[@nagelflorian](https://github.com/nagelflorian) in [#936](https://github.com/apollographql/graphql-tools/pull/936)

### v3.1.1

Expand Down
2 changes: 1 addition & 1 deletion src/stitching/mergeSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ function guessSchemaByRootField(
}
}
throw new Error(
`Could not find subschema with field \`{operation}.{fieldName}\``,
`Could not find subschema with field \`${operation}.${fieldName}\``,
);
}

Expand Down

0 comments on commit 4e75f88

Please sign in to comment.