From e57cf06b0d70020866c8217b0effcb80d26cc2cb Mon Sep 17 00:00:00 2001 From: Danielle Lancashire Date: Mon, 12 Aug 2019 15:41:14 +0200 Subject: [PATCH] fixup rebase --- jobspec/parse_task.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jobspec/parse_task.go b/jobspec/parse_task.go index 52def23be2e..7edccb43071 100644 --- a/jobspec/parse_task.go +++ b/jobspec/parse_task.go @@ -178,8 +178,7 @@ func parseTask(item *ast.ObjectItem) (*api.Task, error) { // Parse volume mounts if o := listVal.Filter("volume_mount"); len(o.Items) > 0 { if err := parseVolumeMounts(&t.VolumeMounts, o); err != nil { - return multierror.Prefix(err, fmt.Sprintf( - "'%s', volume_mount ->", n)) + return nil, multierror.Prefix(err, "volume_mount ->") } }