mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: prompt when parameter options are incompatible (#9247)
This commit is contained in:
@@ -981,6 +981,8 @@ func (p *prettyErrorFormatter) format(err error) {
|
||||
msg = sdkError.Message
|
||||
if sdkError.Helper != "" {
|
||||
msg = msg + "\n" + sdkError.Helper
|
||||
} else if sdkError.Detail != "" {
|
||||
msg = msg + "\n" + sdkError.Detail
|
||||
}
|
||||
// The SDK error is usually good enough, and we don't want to overwhelm
|
||||
// the user with output.
|
||||
|
||||
Reference in New Issue
Block a user