Skip to content

Commit

Permalink
Better display of reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Bourget committed Nov 11, 2024
1 parent 0f7769c commit 83e12c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/substreams/registry-publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func runRegistryPublish(cmd *cobra.Command, args []string) error {
linkStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("9"))
fmt.Println("")
fmt.Println(linkStyle.Render("Failed to publish package") + "\n")
fmt.Println("Reason:" + string(b))
fmt.Println("Reason: " + string(b))
return nil
}

Expand All @@ -182,7 +182,7 @@ func runRegistryPublish(cmd *cobra.Command, args []string) error {
return nil
}

func copyPasteTokenForm(endpoint string) (string, error){
func copyPasteTokenForm(endpoint string) (string, error) {
linkStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("12"))
fmt.Printf("Login to the Substreams registry.")
fmt.Println()
Expand Down Expand Up @@ -214,4 +214,4 @@ func copyPasteTokenForm(endpoint string) (string, error){
}

return token, nil
}
}

0 comments on commit 83e12c9

Please sign in to comment.