imgtxt: print err with failure message

This commit is contained in:
Arya 2023-08-15 20:03:00 +05:30
parent bfd34a06f8
commit 977e3dff2e
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -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)
}