Permalink
Browse files

Bug fix

  • Loading branch information...
1 parent 3499db5 commit d59bf5b8741c3b4427238e545136d859b451d594 @a-fung committed May 5, 2013
@@ -812,6 +812,12 @@ private string TryOutputFile(string content)
this.Status = 3;
this.Save();
}
+ catch (Exception ex)
+ {
+ Utility.TryLogError(ex);
+ this.Status = 99;
+ this.Save();
+ }
return tempFilePath;
}
@@ -118,6 +118,7 @@
<p id="FileMissing">File Missing</p>
<p id="WrongFormat">Wrong Format</p>
<p id="ContentMismatch">Content Mismatch</p>
+<p id="UnknownStatus">Unknown Error</p>
<p id="DeleteMangasConfirm">Are you sure to delete the selected manga(s)?</p>
<p id="EditPath">Edit Path</p>
<p id="CopyMeta">Copy Meta</p>
@@ -118,6 +118,7 @@
<p id="FileMissing">文件遺失</p>
<p id="WrongFormat">格式錯誤</p>
<p id="ContentMismatch">內容不相符</p>
+<p id="UnknownStatus">不明錯誤</p>
<p id="DeleteMangasConfirm">確定刪除所選的漫畫嗎?</p>
<p id="EditPath">編輯路徑</p>
<p id="CopyMeta">複製詳細資料</p>
@@ -771,6 +771,12 @@ class Manga
this.Status = 3;
this.Save();
}
+ catch (ex:Exception)
+ {
+ Utility.TryLogError(ex);
+ this.Status = 99;
+ this.Save();
+ }
return tempFilePath;
}
@@ -117,7 +117,7 @@ private void ChangePage(int page)
jQuery.Select(".admin-mangas-path", row).Text(mangas[i].path);
jQuery.Select(".admin-mangas-type", row).Text(mangas[i].type == 0 ? Strings.Get("Zip") : mangas[i].type == 1 ? Strings.Get("RAR") : Strings.Get("PDF"));
jQuery.Select(".admin-mangas-views", row).Text(mangas[i].view.ToString());
- jQuery.Select(".admin-mangas-status", row).Text(mangas[i].status == 0 ? Strings.Get("OK") : mangas[i].status == 1 ? Strings.Get("FileMissing") : mangas[i].status == 2 ? Strings.Get("WrongFormat") : Strings.Get("ContentMismatch"));
+ jQuery.Select(".admin-mangas-status", row).Text(mangas[i].status == 0 ? Strings.Get("OK") : mangas[i].status == 1 ? Strings.Get("FileMissing") : mangas[i].status == 2 ? Strings.Get("WrongFormat") : mangas[i].status == 3 ? Strings.Get("ContentMismatch") : Strings.Get("UnknownStatus"));
}
}

0 comments on commit d59bf5b

Please sign in to comment.