Add file path to error messages

Add the path to the file which caused the error, which is very helpful for tracking down bugs in a bigger project.