Backporting filename in runtime error messages to 1.11