Skip to content

Commit

Permalink
fix: 修复搜索错误提示中未给出具体站点名称的Bug
Browse files Browse the repository at this point in the history
closed #65
  • Loading branch information
ronggang committed Mar 20, 2019
1 parent 3505209 commit 470b5d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/background/searcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class Searcher {
}

if (!searchConfig.entry) {
result.msg = "该站点未配置搜索页面,请先配置";
result.msg = `该站点[${site.name}]未配置搜索页面,请先配置`;
result.type = EDataResultType.error;
reject(result);
console.log("searchTorrent: tip");
Expand Down Expand Up @@ -203,7 +203,7 @@ export class Searcher {

// 没有指定搜索入口
if (entryCount == 0) {
result.msg = "该站点未指定搜索页面,请先指定一个搜索入口";
result.msg = `该站点[${site.name}]未指定搜索页面,请先指定一个搜索入口`;
result.type = EDataResultType.error;
reject(result);
}
Expand Down

0 comments on commit 470b5d7

Please sign in to comment.