mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +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 {
|
||||
return err
|
||||
}
|
||||
out := r.RenderBytes(b)
|
||||
|
||||
out, err := r.RenderBytes(b)
|
||||
fmt.Printf("%s", string(out))
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
Loading…
Reference in a new issue