Browse Source

feat: interpolate NoApi message and include URL

pull/6516/head
Arman Ozak 6 years ago
parent
commit
79d5e5c215
  1. 2
      npm/ng-packs/packages/schematics/src/utils/source.ts

2
npm/ng-packs/packages/schematics/src/utils/source.ts

@ -36,7 +36,7 @@ async function getApiDefinition(sourceUrl: string) {
} catch ({ response }) {
// handle redirects
if (!response?.body || response.statusCode >= 400)
throw new SchematicsException(Exception.NoApi);
throw new SchematicsException(interpolate(Exception.NoApi, url));
body = response.body;
}

Loading…
Cancel
Save