diff --git a/packages/angular/tailwind.ts b/packages/angular/tailwind.ts index 438c4f6b1cd3b..38d615954ef06 100644 --- a/packages/angular/tailwind.ts +++ b/packages/angular/tailwind.ts @@ -11,7 +11,7 @@ export function createGlobPatternsForDependencies( ) { try { return jsGenerateGlobs(dirPath, fileGlobPattern); - } catch { + } catch (e) { /** * It should not be possible to reach this point when the utility is invoked as part of the normal * lifecycle of Nx executors. However, other tooling, such as the VSCode Tailwind IntelliSense plugin @@ -22,7 +22,8 @@ export function createGlobPatternsForDependencies( * fundamently unavailable in this tailwind-specific context. */ console.warn( - '\n[createGlobPatternsForDependencies] WARNING: There was no ProjectGraph available to read from, returning an empty array of glob patterns\n' + '\nWARNING: There was an error creating glob patterns, returning an empty array\n' + + `${e.message}\n` ); return []; } diff --git a/packages/js/src/utils/generate-globs.ts b/packages/js/src/utils/generate-globs.ts index ae856efe68cc6..a4a940164f397 100644 --- a/packages/js/src/utils/generate-globs.ts +++ b/packages/js/src/utils/generate-globs.ts @@ -46,7 +46,7 @@ export function createGlobPatternsForDependencies( if (!projectName) { throw new Error( - `Could not find any project containing the file "${filenameRelativeToWorkspaceRoot}" among it's project files` + `createGlobPatternsForDependencies: Could not find any project containing the file "${filenameRelativeToWorkspaceRoot}" among it's project files` ); } } catch (e) { diff --git a/packages/react/tailwind.ts b/packages/react/tailwind.ts index 2abdbab4f939f..378bce16b58a9 100644 --- a/packages/react/tailwind.ts +++ b/packages/react/tailwind.ts @@ -11,7 +11,7 @@ export function createGlobPatternsForDependencies( ) { try { return jsGenerateGlobs(dirPath, fileGlobPattern); - } catch { + } catch (e) { /** * It should not be possible to reach this point when the utility is invoked as part of the normal * lifecycle of Nx executors. However, other tooling, such as the VSCode Tailwind IntelliSense plugin @@ -22,7 +22,8 @@ export function createGlobPatternsForDependencies( * fundamently unavailable in this tailwind-specific context. */ console.warn( - '\n[createGlobPatternsForDependencies] WARNING: There was no ProjectGraph available to read from, returning an empty array of glob patterns\n' + '\nWARNING: There was an error creating glob patterns, returning an empty array\n' + + `${e.message}\n` ); return []; }