Skip to content

Commit

Permalink
Update destroy.go
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
chemidy authored Apr 16, 2018
1 parent 28683c3 commit 9bdd456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/grapicmd/cmd/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func newDestroyServiceCommand(cfg grapicmd.Config, generator module.ServiceGener
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
if !cfg.IsInsideApp() {
return errors.New("destroy command should execute inside a grapi applicaiton directory")
return errors.New("destroy command should execute inside a grapi application directory")
}

return errors.WithStack(errors.WithStack(generator.DestroyService(args[0])))
Expand All @@ -47,7 +47,7 @@ func newDestroyCommandCommand(cfg grapicmd.Config, generator module.CommandGener
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
if !cfg.IsInsideApp() {
return errors.New("destroy command should execute inside a grapi applicaiton directory")
return errors.New("destroy command should execute inside a grapi application directory")
}

return errors.WithStack(generator.DestroyCommand(args[0]))
Expand Down

0 comments on commit 9bdd456

Please sign in to comment.