Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fix of issue #1096: Task creation errors are not displayed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Bourdon committed Jul 26, 2016
1 parent b0a6e1d commit af8e0af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/snapctl/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@ type task struct {
}

func createTask(ctx *cli.Context) error {
var err error
if ctx.IsSet("task-manifest") {
fmt.Println("Using task manifest to create task")
createTaskUsingTaskManifest(ctx)
err = createTaskUsingTaskManifest(ctx)
} else if ctx.IsSet("workflow-manifest") {
fmt.Println("Using workflow manifest to create task")
createTaskUsingWFManifest(ctx)
err = createTaskUsingWFManifest(ctx)
} else {
return newUsageError("Must provide either --task-manifest or --workflow-manifest arguments", ctx)
}

return nil
return err
}

func createTaskUsingTaskManifest(ctx *cli.Context) error {
Expand Down

0 comments on commit af8e0af

Please sign in to comment.