Permalink
Browse files

RuncoafileHandler.java: Show error dialog instead of logging error

  • Loading branch information...
arafsheikh committed Jun 25, 2016
1 parent 844b84e commit 7d83c960dc77062acf689779fec58b9d526e92bf
Showing with 3 additions and 1 deletion.
  1. +3 −1 com.coala.core/src/com/coala/core/handlers/RuncoafileHandler.java
@@ -8,6 +8,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
@@ -57,7 +58,8 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
if (folder != null && project != null) {
ExternalUtils.runcoafile(folder, project);
} else {
System.out.println("Couldn't run analysis using .coafile");
MessageDialog.openError(null, "coafile not found",
"This coafile couldn't be found in this directory. Please create one.");
}
} catch (IOException ex) {
ex.printStackTrace();

0 comments on commit 7d83c96

Please sign in to comment.