Skip to content

Commit 9cb4f87

Browse files
committed
fix error message
1 parent b3dc31f commit 9cb4f87

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Applications/Ice/Main/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<value>エラーを無視して処理を継続しますか?継続した場合、圧縮・解凍結果の一部または全部が破損している可能性があるのでご注意下さい。</value>
6363
</data>
6464
<data name="ErrorGeneric" xml:space="preserve">
65-
<value>処理中にエラーが発生しました ({0})</value>
65+
<value>処理中にエラーが発生しました ({0})</value>
6666
</data>
6767
<data name="Filter7z" xml:space="preserve">
6868
<value>7-Zip ファイル</value>

Applications/Ice/Main/Sources/Message.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,11 @@ private static string GetMessage(Report src)
182182
private static string GetMessage(Exception src)
183183
{
184184
var dest = new StringBuilder();
185-
if (src is AccessException ae) dest.Append($"{ae.FileName} ");
186-
return dest.AppendFormat(Properties.Resources.ErrorGeneric, src.GetType().Name).ToString();
185+
return dest.AppendFormat(Properties.Resources.ErrorGeneric, src.GetType().Name)
186+
.AppendLine()
187+
.AppendLine()
188+
.Append(src.Message)
189+
.ToString();
187190
}
188191

189192
#endregion

0 commit comments

Comments
 (0)