Skip to content

Commit

Permalink
Merge pull request #101 from covalenthq/out_err
Browse files Browse the repository at this point in the history
print err apart from output in w3up errors
  • Loading branch information
sudeepdino008 authored Jan 16, 2024
2 parents 41ac632 + c3bbb74 commit 1399c9a
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 1399c9a

Please sign in to comment.