Added better error reporting and fixed bug where re-compilation didn't flush file cache.