mirror of
https://codeberg.org/aryak/mozhi
synced 2024-11-16 16:12:59 +05:30
imgtxt: print err with failure message
This commit is contained in:
parent
bfd34a06f8
commit
977e3dff2e
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user