Skip to content

Commit

Permalink
perf: 优化smart匹配数据库端口数量失败时的错误提示信息
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie committed Oct 20, 2022
1 parent 74b0a83 commit e8d5b9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/services/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ export class AppService {
} else {
data['assetId'] = view.node.id;
}
return this._http.getSmartEndpoint(data, protocol);
const res = this._http.getSmartEndpoint(data, protocol);
res.catch((err) => { alert(err.error.detail); });
return res;
}
}

0 comments on commit e8d5b9a

Please sign in to comment.