google/googleapis.dart

DetailedApiRequestError.toString() should print more information

Open

#70 建立於 2019年3月25日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Dart (133 fork)github user discovery
enhancementhelp wanted

倉庫指標

Star
 (419 star)
PR 合併指標
 (PR 指標待抓取)

描述

I've often found the DetailedApiRequestError.jsonResponse to contain critically important information about errors...

Maybe we could just dump that as part of the error messages using toString(), if we pretty print it with indentation it probably doesn't matter so much if it's a huge blob.


I'm not entirely sure if any APIs would include sensitive information in error messages that you wouldn't want to risk leaking into logs. But I suspect that's not the case, although it can never be excluded as users could be doing anything..

貢獻者指南