if (proc.waitFor() == 0) {
VirtualFileManager.getInstance().syncRefresh();
toolWindow.printNormalMessage(String.format("%nFinished building project %s%n", execName));
} else {
toolWindow.printErrorMessage(String.format("%nCould't build project %s%n", execName));
throw new CantRunException(String.format("Error while processing %s build command.", goExecName));
}
} catch (Exception e) {
throw new CantRunException(String.format("Error while processing %s build command.", goExecName));
}