Improve error handling of packaging functions

This commit is contained in:
syuilo 2018-10-05 01:43:47 +09:00
parent 401d0b1298
commit baf9b65801
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
6 changed files with 28 additions and 12 deletions

View file

@ -361,7 +361,7 @@ export const pack = (
_user = deepcopy(user);
}
// ユーザーがデータベース上に見つからなかったとき
// (データベースの欠損などで)ユーザーがデータベース上に見つからなかったとき
if (_user == null) {
console.warn(`user not found on database: ${user}`);
return null;