core: Error over panic if output type unknown

This commit is contained in:
James Nugent 2016-05-18 13:24:31 -05:00
parent 3ea3c657b5
commit 8e732c104b
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,8 @@ func (c *OutputCommand) Run(args []string) int {
return 1 return 1
} }
default: default:
panic(fmt.Errorf("Unknown output type: %T", v.Value.(string))) c.Ui.Error(fmt.Sprintf("Unknown output type: %T", v.Type))
return 1
} }
return 0 return 0