block / goose

Goose is a developer agent that operates from your command line to help you do the boring stuff.
https://block.github.io/goose/
Apache License 2.0
109 stars 17 forks source link

fix: exit the goose and show the error message when provider environment variable is not set #103

Closed lifeizhou-ap closed 2 weeks ago

lifeizhou-ap commented 3 weeks ago

Why

Currently it throws a runtime error and print the stack trace when

This make it hard for users to understand what is going.

What

Exchange

With the above custom erross we can construct user friendly messages in goose

goose

screenshots

Screenshot 2024-10-03 at 11 35 56 AM

Screenshot 2024-10-02 at 11 49 46 AM

Please give feedback including the content and presentation of these error message. Thank you!