Can publish to process
All checks were successful
release-nightly / build-docker (push) Successful in 1m9s

This commit is contained in:
2023-12-10 18:26:04 +08:00
parent ccc98f6633
commit 7b47004cf7
11 changed files with 34 additions and 20 deletions

View File

@ -70,10 +70,10 @@ var DeployCommands = []*cli.Command{
BasicAuth("RoadSign CLI", server.Credential)
var mistake error
if status, _, err := client.Bytes(); len(err) > 0 {
if status, data, err := client.Bytes(); len(err) > 0 {
mistake = fmt.Errorf("failed to publish to remote: %q", err)
} else if status != 200 {
mistake = fmt.Errorf("server rejected request, status code %d", status)
mistake = fmt.Errorf("server rejected request, status code %d, response %s", status, string(data))
}
// Cleanup