summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/psb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/psb.c b/pttbbs/mbbsd/psb.c
index d5a519aa..1c7e2efd 100644
--- a/pttbbs/mbbsd/psb.c
+++ b/pttbbs/mbbsd/psb.c
@@ -757,12 +757,16 @@ psb_comment_manager(const char *board, const char *file) {
.input_processor = pvcm_input_processor,
};
pvcmctx.cmctx = CommentsOpen(board, file);
- if (!pvcmctx.cmctx)
+ if (!pvcmctx.cmctx) {
+ vmsg("系統錯誤,請至 " BN_BUGREPORT " 報告。");
return FULLUPDATE;
+ }
ctx.total = CommentsGetCount(pvcmctx.cmctx);
if (ctx.total){
pvcm_welcome();
psb_main(&ctx);
+ } else {
+ vmsg("此文章無推文資料。");
}
CommentsClose(pvcmctx.cmctx);
return DIRCHANGED;