Skip to content

Commit

Permalink
log failed mount message (#1599)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeenkaur committed Jan 9, 2024
1 parent 4ed0b75 commit 56230ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/integration_tests/util/mounting/mounting.go
Expand Up @@ -43,9 +43,10 @@ func MountGcsfuse(binaryFile string, flags []string) error {
fmt.Println("Could not write cmd to logFile")
}

_, err = mountCmd.CombinedOutput()
output, err := mountCmd.CombinedOutput()
if err != nil {
log.Println(mountCmd.String())
log.Println("Error: ", string(output))
return fmt.Errorf("cannot mount gcsfuse: %w\n", err)
}
return nil
Expand Down

0 comments on commit 56230ed

Please sign in to comment.