Fix error handling for many adapters

A bunch of adapters would actually throw an error rather than returning it into the promise pipeline as it should. This pull request should resolve that for any compiler that did, and add tests to ensure that all compilers have proper error handling.