Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
fmt.Errorf error message
Browse files Browse the repository at this point in the history
Signed-off-by: zychen5186 <[email protected]>
  • Loading branch information
zychen5186 committed Mar 22, 2024
1 parent 6f014e5 commit b95158e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/core/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ func generateCommandFunc(cmdEntry CommandEntry) func(cmd *cobra.Command, args []
if len(os.Getenv("FLTYE_ADMIN_ENDPOINT")) > 0 {
envEndpoint, err := url.Parse(os.Getenv("FLTYE_ADMIN_ENDPOINT"))
if err != nil {
fmt.Println("Error parsing URL:", err)
return err
return fmt.Errorf("error parsing url: %v", err)
}
adminCfg.Endpoint = stdConfig.URL{
URL: *envEndpoint,
Expand Down

0 comments on commit b95158e

Please sign in to comment.