Skip to content

Commit 6ac5529

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 6ac5529

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • packages/apollo/src/commands/service

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)