Include hook name in error message when logging output failed

Change-Id: I1eb5343ba08baef82023b94f22cea0819e97b864
diff --git a/src/main/java/com/googlesource/gerrit/plugins/hooks/HookTask.java b/src/main/java/com/googlesource/gerrit/plugins/hooks/HookTask.java
index edbcc01..3f6e0c7 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/hooks/HookTask.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/hooks/HookTask.java
@@ -129,7 +129,7 @@
           log.debug("hook[{}] output: {}", name, line);
         }
       } catch (IOException iox) {
-        log.error("Error writing hook output", iox);
+        log.error("Error writing hook [{}] output", name, iox);
       }
     }