Skip to content

Commit f275ec2

Browse files
committed
Fix tabular output for unrecognized errors
"table" package is strict about data and fails on inconsistent rows dimension
1 parent 8fa301d commit f275ec2

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Upcoming
44

55
- `apollo`
6-
- <First `apollo` related entry goes here>
6+
- Fix tabular output for unrecognized errors [#1745](https://github.com/apollographql/apollo-tooling/pull/1745)
77
- `apollo-codegen-flow`
88
- <First `apollo-codegen-flow` related entry goes here>
99
- `apollo-codegen-scala`

packages/apollo/src/commands/service/check.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,11 @@ export default class ServiceCheck extends ProjectCommand {
643643
table(
644644
[
645645
["Service", "Field", "Message"],
646-
...compositionErrors.map(Object.values)
646+
...compositionErrors.map(({ service, field, message }) => [
647+
service,
648+
field,
649+
message
650+
])
647651
],
648652
{
649653
columns: {

0 commit comments

Comments
 (0)