Skip to content

Commit

Permalink
cli: fix errors being ignored on metadata apply
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptonist authored Apr 16, 2021
1 parent 7e708f6 commit 1f526c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ In the future, we will probably offer a way to explicitly choose which behaviour
- console: add custom_column_names to track_table request with replaced invalid characters (#992)
- console: add details button to the success notification to see inserted row
- console: add request preview for REST endpoints
- cli: fix errors being ignored during `metadata apply` in config v3 (fix #6784)

## v2.0.0-alpha.7

Expand Down
7 changes: 5 additions & 2 deletions cli/commands/metadata.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package commands

import (
"fmt"

"github.com/hasura/graphql-engine/cli"
"github.com/hasura/graphql-engine/cli/internal/metadataobject"
"github.com/hasura/graphql-engine/cli/internal/scripts"
Expand Down Expand Up @@ -92,8 +94,9 @@ func executeMetadata(cmd string, ec *cli.ExecutionContext) error {
}
return nil
}

metadataHandler.V2ApplyMetadata()
if err := metadataHandler.V2ApplyMetadata(); err != nil {
return fmt.Errorf("\n%w", err)
}
}
return nil
}

0 comments on commit 1f526c7

Please sign in to comment.