mirror of
https://codeberg.org/aryak/mozhi
synced 2024-12-22 16:59:49 +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) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
text, err := utils.ImgTxt(file)
|
text, err := utils.ImgTxt(file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Failed to convert image to text")
|
fmt.Println("Failed to convert image to text: ", err)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println(text)
|
fmt.Println(text)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user