diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 2ae40b0286..10e3844464 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -13,6 +13,7 @@ import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.File; +import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.util.Calendar; @@ -302,4 +303,8 @@ public class Functions { if(n==null) return null; else return n+' '; } + + public static String getWin32ErrorMessage(IOException e) { + return Util.getWin32ErrorMessage(e); + } }