mirror of
https://github.com/charmbracelet/crush.git
synced 2025-08-02 05:20:46 +03:00
fix: typo
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
@@ -162,7 +162,7 @@ func (app *App) RunNonInteractive(ctx context.Context, prompt string, quiet bool
|
||||
|
||||
msgContent := result.Message.Content().String()
|
||||
if len(msgContent) < readBts {
|
||||
slog.Error("Non-interacgive: message content is shorter than read bytes", "message_length", len(msgContent), "read_bytes", readBts)
|
||||
slog.Error("Non-interactive: message content is shorter than read bytes", "message_length", len(msgContent), "read_bytes", readBts)
|
||||
return fmt.Errorf("message content is shorter than read bytes: %d < %d", len(msgContent), readBts)
|
||||
}
|
||||
fmt.Println(msgContent[readBts:])
|
||||
|
||||
Reference in New Issue
Block a user