ログしっかり入れるとコードがなんか汚くなるんで嫌なんだが皆の衆は気にならんのか???

doHoge(await getFuga())



let fuga = null
try {
fuga = await getFuga()
console.debug(fuga.id)
}
catch(e) {
if (e instanceof Xxx) console.error("このエラーの原因はたぶんアレだ。設定を確認してね")
if (e instanceof Yyy) console.error("プギャー")
throw e
}
doHoge(fuga)