Improve API error messages with known error codes

When an API call fails, sometimes a numeric code is returned indicating
a type of generic error. These errors are known, so this change returns
the message instead of the numeric code when it is known.

This is particularly useful for the "batch lock" feature, since this
changes the error message "Error code: 7" to "Error code:
PERMISSION_DENIED", which is much clearer to users.

Change-Id: I7eb98a0442f63ea5aa35886453df5ea6e524af99
1 file changed
tree: 74ec678fd3e1e85b23fdefeced444f2cbf8687c0
  1. .github/
  2. docs/
  3. playbooks/
  4. roles/
  5. src/
  6. templates/
  7. tools/
  8. .clang-format
  9. .editorconfig
  10. .gitignore
  11. .gitreview
  12. .zuul.yaml
  13. LICENSE
  14. Makefile
  15. OWNERS
  16. package-lock.json
  17. package.json
  18. README.md
  19. tagRelease.bash
  20. webpack.config.js
README.md

TW Power Tools

Available in the Chrome Web Store

An extension which brings several enhancements to the Google Forums and the Community Console.

For a list of features/enhancements, check out the feature list doc.

Information for contributors

This extension is being actively developed, and everyone is welcome to make feature requests, report issues and contribute code changes.

In order to make feature requests or report issues, please do so at the Monorail Issue Tracker:

To see a more exhaustive guide on how to contribute, and information on how to contribute code changes, please read the following doc:

Beta channel

Before releasing updates to the stable channel, the newest versions are uploaded to the beta channel so they can be tested by everyone who's interested. This is another way to contribute to the project, because beta testing can make us notice bugs before they reach the stable channel.

The beta channel for Chrome is available here.