Better error messages when a dependency compilation fails