Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Files]: Fix format for errors reported when calling getMetada.
String subtitution does not work correctly when tests are run. As a result we get "getMetadata error for: %s; error: (%d, %s, %s) ..." in the logs, rather than correctly formatted strings. Also, if the error is not DOMException, relying on presence or name, code, and message is a mistake. It is better to use toString() method and let the exception format itself. This is a follow-up to crrev.com/c/3812720 Bug: 1348455 Change-Id: I57325bdbc54f3f65ce92419b1ba4074fd6b7929a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3815102 Reviewed-by: Luciano Pacheco <lucmult@chromium.org> Commit-Queue: Bo Majewski <majewski@chromium.org> Cr-Commit-Position: refs/heads/main@{#1032410}
- Loading branch information