From b88fe7ac37c14e25857208662431126f337ce632 Mon Sep 17 00:00:00 2001 From: Jesse Seldess Date: Thu, 5 Sep 2024 14:03:11 -0400 Subject: [PATCH] Return error for serverless index creation failure (#71) ## Problem The create serverless index example doesn't return the error on index creation failure. ## Solution Fix the error message. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [ ] Infrastructure change (CI configs, etc) - [x] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan Describe specific steps for validating this change. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40c44ae..1fdf2a9 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ func main() { }) if err != nil { - log.Fatalf("Failed to create serverless index: %s", indexName) + log.Fatalf("Failed to create serverless index: %v", err) } else { fmt.Printf("Successfully created serverless index: %s", idx.Name) }