Skip to content

Commit

Permalink
print err apart from output in w3up errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeepdino008 committed Jan 10, 2024
1 parent 53bc307 commit c3bbb74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions w3up/w3up.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (w3up *W3up) WhoAmI() (did.DID, error) {
cmd := exec.Command("bash", "-c", command)
output, err := cmd.CombinedOutput()
if err != nil {
log.Fatal("error initializing w3up: ", string(output))
log.Fatal("error initializing w3up: ", string(output), err)
return did.DID{}, err
}

Expand All @@ -49,7 +49,7 @@ func (w3up *W3up) SpaceAdd() (did.DID, error) {
cmd := exec.Command("bash", "-c", command)
output, err := cmd.CombinedOutput()
if err != nil {
log.Fatal("error adding w3up space: ", string(output))
log.Fatal("error adding w3up space: ", string(output), err)
return did.DID{}, err
}

Expand All @@ -67,7 +67,7 @@ func (w3up *W3up) UploadCarFile(carFile *os.File) (cid.Cid, error) {
cmd := exec.Command("bash", "-c", command)
output, err := cmd.CombinedOutput()
if err != nil {
log.Fatal("error uploading car file: ", string(output))
log.Fatal("error uploading car file: ", string(output), err)
return cid.Undef, err
}

Expand Down

0 comments on commit c3bbb74

Please sign in to comment.