(PUP-1100) Fix error message with create_resource and auto-loaded class

These commits fix the error message displayed by PM when a syntax error
is present on an auto-loaded file.
Looks good overallt. The content of the `expect { }` block should be indented one level. There heredoc is gratuitous, seeing as it's a one line manifest, that should just be a `'string'`.