Apply suggestions from code review
Co-authored-by: Adam Harvey <adam.harvey@dxc.com> Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
@@ -86,7 +86,7 @@ export class DocsBuilder {
|
||||
);
|
||||
|
||||
// If available, use the etag stored in techdocs_metadata.json to
|
||||
// check if docs are outdated and needs to be regenerated.
|
||||
// check if docs are outdated and need to be regenerated.
|
||||
let storedEtag: string | undefined;
|
||||
if (await this.publisher.hasDocsBeenGenerated(this.entity)) {
|
||||
storedEtag = (
|
||||
|
||||
@@ -180,7 +180,7 @@ export async function createRouter({
|
||||
);
|
||||
res.status(408).json({
|
||||
error:
|
||||
'Sorry! It is taking longer for the generated docs to show up in storage. Check back later.',
|
||||
'Sorry! It took too long for the generated docs to show up in storage. Check back later.',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user