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

Fix of issue #1096: Task creation errors are not displayed anymore #1097

Merged
merged 1 commit into from
Jul 26, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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