Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 8e732c1

Browse files
committed
core: Error over panic if output type unknown
1 parent 3ea3c65 commit 8e732c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

command/output.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ func (c *OutputCommand) Run(args []string) int {
137137
return 1
138138
}
139139
default:
140-
panic(fmt.Errorf("Unknown output type: %T", v.Value.(string)))
140+
c.Ui.Error(fmt.Sprintf("Unknown output type: %T", v.Type))
141+
return 1
141142
}
142143

143144
return 0

0 commit comments

Comments
 (0)