Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 10 pull requests #75865

Merged
merged 26 commits into from
Aug 24, 2020
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5d32786
Switch to intra-doc links in `std::macros`
camelid Aug 22, 2020
becf5ec
Add missing intra-doc link
camelid Aug 23, 2020
637659b
Add missing links
camelid Aug 23, 2020
69d3334
Fix typo in documentation of i32 wrapping_abs()
jrheard Aug 23, 2020
2c995d2
Prefer https link for wikipedia URLs
tesuji Aug 23, 2020
18f47d8
Misleading documentation for derived Ord/PartialOrd implementation fo…
Aug 23, 2020
2e6f2e8
publish-toolstate: show more context on HTTP error
ehuss Aug 23, 2020
e9928d8
Switch to intra-doc links in `std::collections`
camelid Aug 23, 2020
04e8237
Switch to intra-doc links in `core::array`
camelid Aug 23, 2020
7c6362a
expand-yaml-anchors: fix clippy::match_ref_pats and clippy::redundant…
matthiaskrgr Aug 22, 2020
d97c470
linkcheckr: fix clippy::redundant_static_lifetimes and clippy::single…
matthiaskrgr Aug 22, 2020
d36e3e2
Use intra-doc-links in `core::{char, macros, fmt}`
LeSeulArtichaut Aug 23, 2020
ebac0e4
tidy: remove redundant variable from check_if_error_code_is_test_in_e…
matthiaskrgr Aug 23, 2020
ba6b427
unicode_table_generator: fix clippy::writeln_empty_string, clippy::us…
matthiaskrgr Aug 23, 2020
a725001
unstable-book-gen: fix clippy::single_char_pattern and clippy::iter_s…
matthiaskrgr Aug 23, 2020
bc47f70
doc: Fix typo in std::process::Child documentation
jrheard Aug 23, 2020
50bdcc2
Rollup merge of #75819 - LeSeulArtichaut:core-intra-docs-2, r=jyn514
JohnTitor Aug 24, 2020
640b36f
Rollup merge of #75821 - camelid:intra-doc-links-for-std-macros, r=jy…
JohnTitor Aug 24, 2020
b8e456f
Rollup merge of #75825 - jrheard:patch-1, r=steveklabnik
JohnTitor Aug 24, 2020
427e969
Rollup merge of #75826 - ayushmishra2005:misleading_documentation_for…
JohnTitor Aug 24, 2020
25a677c
Rollup merge of #75831 - lzutao:https, r=Dylan-DPC
JohnTitor Aug 24, 2020
d6de961
Rollup merge of #75844 - ehuss:publish-toolstate-httperror, r=Mark-Si…
JohnTitor Aug 24, 2020
282d258
Rollup merge of #75847 - camelid:patch-1, r=dtolnay
JohnTitor Aug 24, 2020
648ad7c
Rollup merge of #75851 - camelid:patch-2, r=jyn514
JohnTitor Aug 24, 2020
7209b9c
Rollup merge of #75856 - matthiaskrgr:more_clippy, r=Dylan-DPC
JohnTitor Aug 24, 2020
47a03d9
Rollup merge of #75859 - jrheard:patch-2, r=jonas-schievink
JohnTitor Aug 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
publish-toolstate: show more context on HTTP error
  • Loading branch information
ehuss committed Aug 23, 2020
commit 2e6f2e885506ee46ea32622e33fe74d99774cf57
10 changes: 9 additions & 1 deletion src/tools/publish_toolstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def update_latest(
return message


if __name__ == '__main__':
def main():
repo = os.environ.get('TOOLSTATE_VALIDATE_MAINTAINERS_REPO')
if repo:
github_token = os.environ.get('TOOLSTATE_REPO_ACCESS_TOKEN')
Expand Down Expand Up @@ -342,3 +342,11 @@ def update_latest(
}
))
response.read()


if __name__ == '__main__':
try:
main()
except urllib2.HTTPError as e:
print("HTTPError: %s\n%s" % (e, e.read()))
raise