add some more error messages, in case something went wrong
some more error messages
always have a defined return value
Merge pull request #3788 from owncloud/more_error_messages

add some more error messages, in case something went wrong