load_image: always print a message on failure if filename is not empty
authorBill Spitzak <spitzak@gmail.com>
Wed, 20 Aug 2014 01:13:10 +0000 (18:13 -0700)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 11 Sep 2014 10:01:47 +0000 (13:01 +0300)
commit28371f7d55ba3468bd3baa06cbab9c82b4842ade
tree129a416d79d08b7c0a5931206f71224f1b1272bb
parent3011493e9b57d558f700367a8a20afd4c1b54711
load_image: always print a message on failure if filename is not empty

It was rather inconsistent before. This may help users figure out why
backgrounds and icons don't show up. A better api where the error can
be queried might be nice, but this seems sufficient for current Weston use.

[Pekka Paalanen: removed one stray space.]

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
shared/image-loader.c