mstorectl: replaced yaml tag to json
This commit is contained in:
@@ -177,9 +177,9 @@ type CommonFileParams struct {
|
||||
|
||||
func printResponse(res any, err error) {
|
||||
type Response struct {
|
||||
Error bool `json:"error" yaml:"error"`
|
||||
Message string `json:"message,omitempty" yaml:"message,omitempty"`
|
||||
Result any `json:"result,omitempty" yaml:"result,omitempty"`
|
||||
Error bool `json:"error" json:"error"`
|
||||
Message string `json:"message,omitempty" json:"message,omitempty"`
|
||||
Result any `json:"result,omitempty" json:"result,omitempty"`
|
||||
}
|
||||
resp := Response{}
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user