Better error reporting when from_app_cache fails