OSDN Git Service

fix #26063 エラーメッセージに例外メッセージを含める
authoryukihane <yukihane.feather@gmail.com>
Fri, 19 Aug 2011 14:47:36 +0000 (23:47 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 19 Aug 2011 14:51:02 +0000 (23:51 +0900)
frontend/src/saccubus/converter/filegetter/WebFileInstanciator.java

index 36f2bfb..82e6fd2 100644 (file)
@@ -59,12 +59,15 @@ public class WebFileInstanciator extends FileInstanciator {
                 final long waybacktime = WayBackTimeParser.parse(time);
                 String waybackkey = client.getWayBackKey(videoInfo);
                 commentInfo = new CommentInfo(waybackkey, waybacktime);
-            }else{
+            } else {
                 commentInfo = null;
             }
 
         } catch (IOException ex) {
-            throw new IOException(tag + "の情報の取得に失敗", ex);
+            final String text = tag + "の情報の取得に失敗";
+            final String cause = (ex.getMessage() != null) ? "(" + ex.getMessage() + ")" : "";
+
+            throw new IOException(text + cause, ex);
         }
 
         if (videoType.isDownload()) {