mirror of
https://github.com/charmbracelet/glow
synced 2025-01-07 09:38:50 +00:00
Don't panic, forward the error to the caller
This commit is contained in:
parent
0058cd2aba
commit
3ddece16e4
1 changed files with 3 additions and 2 deletions
5
main.go
5
main.go
|
@ -133,9 +133,10 @@ func execute(cmd *cobra.Command, args []string) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
out := r.RenderBytes(b)
|
|
||||||
|
out, err := r.RenderBytes(b)
|
||||||
fmt.Printf("%s", string(out))
|
fmt.Printf("%s", string(out))
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in a new issue