## 概要 [Task2934: エラーログが意図した通りに出ていないところがありそうな問題を解消する](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2934) - 何をどう変更したか、追加したライブラリなど error=Errorのログ表示をerror=××Error(エラーの原因)となるように実装 ## レビューポイント - 特にレビューしてほしい箇所 特になし ## 動作確認状況 - ユニットテスト ## 相談(必須レビュアーの方に) 今回の実装のみではまだ解消できていない箇所がいくつかみられました。 以下にその解消できなかったログをいくつかピックアップします。 ERROR [TasksService] error=Error: There is no AuthorId for the API executor. ERROR [FilesService] error=Error: blob failed ERROR [FilesService] error=Error: container not found. ERROR [UsersService] error=Error: ADB2C error ERROR [UsersService] error=Error: user not found ERROR [UsersService] error=Error: sort criteria not found ERROR [UsersService] error=Error: sort criteria not found ERROR [UsersService] error=Error: The value stored in the DB is invalid. 原因としては、throw new ××Errorではなく、throw new Errorで実装されていました。 interface Error { name: string; message: string; stack?: string; } interface ErrorConstructor { new(message?: string): Error; (message?: string): Error; readonly prototype: Error; } 上記の実装により返却されるメッセージがErrorになっているため解消されていないと考えています。 以上の事象について対応するかしないかということと、対応する場合は、どのように対応していくかをご意見いただきたいです。 本タスクで対応というよりも別タスクとして対応とMISOは想定しています。
Description
No description provided
Languages
TypeScript
95.1%
HTML
1.9%
Shell
1.6%
SCSS
1.2%
Dockerfile
0.2%