Commit a74879c
committed
Fail loudly and immediately if we can't gen docs
If htmlgen fails, the whole process fails immediately and you get
a non zero RC. Previously it would just move on to the rendering
step, which makes it harder to notice build errors.
You now get:
...rds
...redshift
...route53
...s3
...s3api
Traceback (most recent call last):
File "aws-cli/doc/source/htmlgen", line 108, in <module>
do_provider(driver)
File "aws-cli/doc/source/htmlgen", line 66, in do_provider
do_service(driver, REF_PATH, service_name, service_command)
File "aws-cli/doc/source/htmlgen", line 48, in do_service
help_command(None, None)
File "aws-cli/awscli/help.py", line 232, in __call__
bcdoc.docevents.generate_events(self.session, self)
File "bcdoc/docevents.py", line 50, in generate_events
help_command.name, help_command=help_command)
File "bcdoc/docevents.py", line 36, in fire_event
session.emit(event, **kwargs)
File "botocore/botocore/session.py", line 551, in emit
return self._events.emit(event_name, **kwargs)
File "botocore/botocore/hooks.py", line 158, in emit
response = handler(**kwargs)
File "aws-cli/awscli/clidocs.py", line 243, in doc_description
doc.include_doc_string(service.documentation)
AttributeError: 'Service' object has no attribute 'documentation'
Failed to generate documetation!
make: *** [html] Error 2
$ echo $?
21 parent f999b7f commit a74879c
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments