mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
Improved the error diagnosis, after seeing http://www.nabble.com/error-installing-hudson-as-a-windows-service-tt21378003.html
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14315 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
4b2f0f145e
commit
86b921ec0a
2 files changed
+14
-1
No files matched your search
@@ -323,6 +323,17 @@ public class Util {
|
||||
return null; // no message
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a human readable mesasge for the given Win32 error code.
|
||||
*
|
||||
* @return
|
||||
* null if no such message is available.
|
||||
*/
|
||||
public static String getWin32ErrorMessage(int n) {
|
||||
ResourceBundle rb = ResourceBundle.getBundle("/hudson/win32errors");
|
||||
return rb.getString("error"+n);
|
||||
}
|
||||
|
||||
/**
|
||||
* Guesses the current host name.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user