From 79d5e5c21570e8ce28e1af45b4383e32a32457fd Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Mon, 7 Dec 2020 11:21:02 +0300 Subject: [PATCH] feat: interpolate NoApi message and include URL --- npm/ng-packs/packages/schematics/src/utils/source.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/ng-packs/packages/schematics/src/utils/source.ts b/npm/ng-packs/packages/schematics/src/utils/source.ts index e1e965744f..a5f0dd1232 100644 --- a/npm/ng-packs/packages/schematics/src/utils/source.ts +++ b/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; }