Skip to content

Commit 6178f9d

Browse files
authored
Merge pull request #153 from typhoonzero/fix_log_command
Fix log command error
2 parents c7d3d29 + d02689b commit 6178f9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

go/paddlecloud/logs.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ func (p *LogsCommand) Execute(_ context.Context, f *flag.FlagSet, _ ...interface
5353

5454
respBody, err := utils.GetCall(utils.Config.ActiveConfig.Endpoint+"/api/v1/logs", queryMap)
5555
if err != nil {
56-
fmt.Fprintf(os.Stderr, "call paddle cloud error %v", err)
56+
fmt.Fprintf(os.Stderr, "call paddle cloud error %v, %v", err, respBody)
57+
return subcommands.ExitFailure
5758
}
5859
var respObj interface{}
5960
errJSON := json.Unmarshal(respBody, &respObj)

0 commit comments

Comments
 (0)