mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-20 06:58:39 +03:00
cli: fix errors being ignored on metadata apply
GitOrigin-RevId: 1f526c70f57082aa968ebc3d957c78613e9a399e
This commit is contained in:
parent
dd1192ca2c
commit
8bc7c2089c
@ -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
|
||||
|
||||
|
@ -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"
|
||||
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user