From 9c4f0b865deb9f6c3af2f4221c0e397a5d40b081 Mon Sep 17 00:00:00 2001 From: Kevin ONeal Date: Fri, 15 Nov 2019 15:50:54 -0600 Subject: [PATCH] Catch when chart is missing readme Signed-off-by: Kevin O'Neal --- .../chart-details-readme/chart-details-readme.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/app/chart-details/chart-details-readme/chart-details-readme.component.ts b/frontend/src/app/chart-details/chart-details-readme/chart-details-readme.component.ts index 4f3022f06..760c6f841 100644 --- a/frontend/src/app/chart-details/chart-details-readme/chart-details-readme.component.ts +++ b/frontend/src/app/chart-details/chart-details-readme/chart-details-readme.component.ts @@ -29,6 +29,10 @@ export class ChartDetailsReadmeComponent implements OnChanges { this.chartsService.getChartReadme(this.currentVersion).subscribe(resp => { this.loading = false; this.readmeContent = markdown(resp.text()); + }, + err => { + this.loading = false; + this.readmeContent = markdown("#### Readme not found!"); }); } }