aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamilo Bernal2013-04-15 16:43:24 (EDT)
committerAlexander Kurtakov2013-04-25 06:15:28 (EDT)
commit8b40b412f860c2d2d74cc2dad0a2d9dfed2f8655 (patch)
treef51d30536d1ca1ebfab171e873b062c5b5c3a877
parent9533fe4e24390fcb22cbce51380b3fd6c1d25d6c (diff)
downloadorg.eclipse.linuxtools-8b40b412f860c2d2d74cc2dad0a2d9dfed2f8655.zip
org.eclipse.linuxtools-8b40b412f860c2d2d74cc2dad0a2d9dfed2f8655.tar.gz
org.eclipse.linuxtools-8b40b412f860c2d2d74cc2dad0a2d9dfed2f8655.tar.bz2
Log caught exceptions as opposed to printing them.refs/changes/20/11920/4
Change-Id: Ia5d8a746fc38fa17161afabb4ce43db9cf3f1c92 Reviewed-on: https://git.eclipse.org/r/11920 Tested-by: Hudson CI Reviewed-by: Alexander Kurtakov <akurtako@redhat.com> IP-Clean: Alexander Kurtakov <akurtako@redhat.com> Tested-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--man/org.eclipse.linuxtools.man.core/src/org/eclipse/linuxtools/internal/man/parser/ManParser.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/man/org.eclipse.linuxtools.man.core/src/org/eclipse/linuxtools/internal/man/parser/ManParser.java b/man/org.eclipse.linuxtools.man.core/src/org/eclipse/linuxtools/internal/man/parser/ManParser.java
index 5d6c913..7cceaab 100644
--- a/man/org.eclipse.linuxtools.man.core/src/org/eclipse/linuxtools/internal/man/parser/ManParser.java
+++ b/man/org.eclipse.linuxtools.man.core/src/org/eclipse/linuxtools/internal/man/parser/ManParser.java
@@ -15,6 +15,8 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.linuxtools.internal.man.Activator;
import org.eclipse.linuxtools.internal.man.preferences.PreferenceConstants;
@@ -65,11 +67,13 @@ public class ManParser {
}
}
} catch (IOException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
+ Status status = new Status(IStatus.ERROR, e1.getMessage(),
+ Activator.PLUGIN_ID);
+ Activator.getDefault().getLog().log(status);
} catch (InterruptedException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
+ Status status = new Status(IStatus.ERROR, e1.getMessage(),
+ Activator.PLUGIN_ID);
+ Activator.getDefault().getLog().log(status);
}
return sb;
}