I'm aware of the issue with layer names not being called out in the error message in magic for certain error types (Also pointed out by Philipp Gühring). I have a development plan to make that better, but I have not started working on the implementation yet.