always print output
This commit is contained in:
3
main.go
3
main.go
@@ -70,10 +70,11 @@ func unlockZFSHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
output, err := cmd.CombinedOutput()
|
||||
|
||||
log.Printf("Output: %s", output)
|
||||
|
||||
if err != nil {
|
||||
http.Error(w, "Failed to unlock dataset", http.StatusInternalServerError)
|
||||
log.Printf("Error: %v", err)
|
||||
log.Printf("Output: %s", output)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user