always print output

This commit is contained in:
2026-06-07 11:46:42 +02:00
parent f1012fe2bc
commit 53b6f72cfa

View File

@@ -70,10 +70,11 @@ func unlockZFSHandler(w http.ResponseWriter, r *http.Request) {
output, err := cmd.CombinedOutput() output, err := cmd.CombinedOutput()
log.Printf("Output: %s", output)
if err != nil { if err != nil {
http.Error(w, "Failed to unlock dataset", http.StatusInternalServerError) http.Error(w, "Failed to unlock dataset", http.StatusInternalServerError)
log.Printf("Error: %v", err) log.Printf("Error: %v", err)
log.Printf("Output: %s", output)
return return
} }