fix error output on resource compilation error