Log resourceError

Currently, it's quite hard to debug resource not found.

this PR adds resourceError logging.