mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Improve uploader exit code
* Fix returning the error if https upload has failed.
This commit is contained in:
parent
1a93aba71b
commit
9da0589236
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ func (p *processor) process(filename string) error {
|
|||
|
||||
var uploadErr error
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
uploadErr := fmt.Errorf("upload failed: %s", resp.Status)
|
||||
uploadErr = fmt.Errorf("upload failed: %s", resp.Status)
|
||||
fmt.Printf("HTTPS %s\n", uploadErr)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue