EA-80250 - ISE: GithubUtil.getErrorTextFromException

This commit is contained in:
Aleksey Pivovarov
2016-07-11 12:35:07 +03:00
committed by Aleksey Pivovarov
parent c55da8fdcb
commit c4c9aaf86f
@@ -16,7 +16,6 @@
package org.jetbrains.plugins.github.util;
import com.intellij.concurrency.JobScheduler;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProgressIndicator;
@@ -450,7 +449,7 @@ public class GithubUtil {
if (e instanceof UnknownHostException) {
return "Unknown host: " + e.getMessage();
}
return e.getMessage();
return StringUtil.notNullize(e.getMessage(), "Unknown error");
}
@Nullable