Improve error handling of packaging functions
This commit is contained in:
parent
401d0b1298
commit
baf9b65801
6 changed files with 28 additions and 12 deletions
|
@ -361,7 +361,7 @@ export const pack = (
|
|||
_user = deepcopy(user);
|
||||
}
|
||||
|
||||
// ユーザーがデータベース上に見つからなかったとき
|
||||
// (データベースの欠損などで)ユーザーがデータベース上に見つからなかったとき
|
||||
if (_user == null) {
|
||||
console.warn(`user not found on database: ${user}`);
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue