save loadError

This commit is contained in:
Doug MacEachern 2005-06-25 23:17:46 +00:00
parent e91665d842
commit a9bd0f6a42
1 changed files with 3 additions and 3 deletions

View File

@ -50,12 +50,12 @@ public class Sigar implements SigarProxy {
try { try {
loadLibrary(); loadLibrary();
} catch (SigarException e) { } catch (SigarException e) {
String msg = "Sigar.load: " + e.getMessage(); loadError = "Sigar.load: " + e.getMessage();
try { try {
SigarLog.debug(msg, e); SigarLog.debug(loadError, e);
} catch (NoClassDefFoundError ne) { } catch (NoClassDefFoundError ne) {
//no log4j.jar //no log4j.jar
System.err.println(msg); System.err.println(loadError);
e.printStackTrace(); e.printStackTrace();
} }
} }