Better error message

When file was '', the message was pretty unclear