add more debug information when failing to open a file.

Backport from commit 58f424a199829171ff77e6a46f0f5850fdce73fd
on https://git.enlightenment.org/core/efl.git