Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-fung committed May 5, 2013
1 parent 3499db5 commit d59bf5b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions source/aspnetserver/Manga.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions source/aspnetserver/lang/en-us.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions source/aspnetserver/lang/zh-hk.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 6 additions & 0 deletions source/haxe/afung/mangaWeb3/server/Manga.hx
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,12 @@ class Manga
this.Status = 3;
this.Save();
}
catch (ex:Exception)
{
Utility.TryLogError(ex);
this.Status = 99;
this.Save();
}

return tempFilePath;
}
Expand Down
2 changes: 1 addition & 1 deletion source/scriptsharpadmin/Module/AdminMangasModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
}

Expand Down

0 comments on commit d59bf5b

Please sign in to comment.