diff options
Diffstat (limited to 'internal/processor')
| -rw-r--r-- | internal/processor/processor.go | 2 | ||||
| -rw-r--r-- | internal/processor/processor_test.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/processor/processor.go b/internal/processor/processor.go index 036fa79..8536b98 100644 --- a/internal/processor/processor.go +++ b/internal/processor/processor.go @@ -793,7 +793,7 @@ func (p *Processor) newNanoBananaImageSearcher() (image.ImageSearcher, error) { } if nanoBananaConfig.APIKey == "" { - return nil, fmt.Errorf("Google API key is required for image generation") + return nil, fmt.Errorf("google API key is required for image generation") } return newNanoBananaImageClient(nanoBananaConfig), nil diff --git a/internal/processor/processor_test.go b/internal/processor/processor_test.go index b746a84..e75fa8d 100644 --- a/internal/processor/processor_test.go +++ b/internal/processor/processor_test.go @@ -212,7 +212,7 @@ func TestNewProcessor_ExplicitGeminiTranslationProvider(t *testing.T) { if err == nil { t.Fatal("Expected error for missing Google API key") } - if err.Error() != "Google API key not found" { + if err.Error() != "google API key not found" { t.Fatalf("Expected Gemini provider error, got: %v", err) } } @@ -1248,8 +1248,8 @@ func TestNewImageSearcherConfiguredNanoBananaRequiresGoogleAPIKey(t *testing.T) if err == nil { t.Fatal("expected error when Google API key is missing for Nano Banana") } - if got := err.Error(); got != "Google API key is required for image generation" { - t.Fatalf("newImageSearcher() error = %q, want %q", got, "Google API key is required for image generation") + if got := err.Error(); got != "google API key is required for image generation" { + t.Fatalf("newImageSearcher() error = %q, want %q", got, "google API key is required for image generation") } } |
