print errors in human-readable format

This commit is contained in:
piotr
2021-09-05 01:57:24 +02:00
parent aa227b51b8
commit 1be8e432fa
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ func createPixbuf(icon string, size int) (*gdk.Pixbuf, error) {
if strings.Contains(icon, "/") {
pixbuf, err := gdk.PixbufNewFromFileAtSize(icon, size, size)
if err != nil {
println(err)
println(fmt.Sprintf("%s", err))
return nil, err
}
return pixbuf, nil