From 977e3dff2ef6b717e6f83d1692187b9446357645 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Tue, 15 Aug 2023 20:03:00 +0530 Subject: [PATCH] imgtxt: print err with failure message --- cmd/imgtxt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/imgtxt.go b/cmd/imgtxt.go index b011917..4347d24 100644 --- a/cmd/imgtxt.go +++ b/cmd/imgtxt.go @@ -15,7 +15,7 @@ var imgtxtCmd = &cobra.Command{ Run: func(cmd *cobra.Command, args []string) { text, err := utils.ImgTxt(file) if err != nil { - fmt.Println("Failed to convert image to text") + fmt.Println("Failed to convert image to text: ", err) } else { fmt.Println(text) }