Merge "Debug of ALL exception during pull request import"
diff --git a/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/PullRequestImportJob.java b/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/PullRequestImportJob.java
index 0e941af..9e007f8 100644
--- a/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/PullRequestImportJob.java
+++ b/github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/PullRequestImportJob.java
@@ -153,10 +153,10 @@
       } catch (OrmException e1) {
         LOG.error("Error rolling back transation", e1);
       }
-    } catch (Exception e) {
+    } catch (Throwable e) {
       LOG.error("Pull request " + prId + " into repository " + organisation
           + "/" + repoName + " was failed", e);
-      status.update(GitJobStatus.Code.FAILED, "Failed", getErrorDescription(e));
+      status.update(GitJobStatus.Code.FAILED, "Failed",  e.getLocalizedMessage());
       try {
         db.rollback();
       } catch (OrmException e1) {
@@ -167,10 +167,6 @@
     }
   }
 
-  private String getErrorDescription(Exception e) {
-    return e.getLocalizedMessage();
-  }
-
   private List<Id> addPullRequestToChange(ReviewDb db, GHPullRequest pr,
       Repository gitRepo) throws Exception {
     String destinationBranch = pr.getBase().getRef();