Add name to the error message

A really annoying thing, this will help with the "error message ... nil, nil." message.
Merge pull request #970 from WibbenZ/patch-16

Add name to the error message