Skip to content

Commit

Permalink
fix: replacing method used for displaying messages (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
37IulianPopovici authored Aug 12, 2024
1 parent ae4614b commit 2d9a68e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export async function inspect(
);
}

console.error(`
console.warn(`
\x1b[33m⚠ WARNING\x1b[0m: Testing a .NET project with runtime resolution enabled.
This should be considered experimental and not relied upon for production use.
Please report issues with this beta feature by submitting a support ticket, and attach the output of running this command
Expand Down
6 changes: 3 additions & 3 deletions lib/nuget-parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export async function buildDepGraphFromFiles(
}

if (targetFramework && !targetFrameworks.includes(targetFramework)) {
console.error(`\x1b[33m⚠ WARNING\x1b[0m: Supplied targetframework \x1b[1m${targetFramework}\x1b[0m was not detected in the supplied
console.warn(`\x1b[33m⚠ WARNING\x1b[0m: Supplied targetframework \x1b[1m${targetFramework}\x1b[0m was not detected in the supplied
manifest file. Available targetFrameworks detected was \x1b[1m${targetFrameworks.join(
',',
)}\x1b[0m.
Expand Down Expand Up @@ -186,7 +186,7 @@ Will attempt to build dependency graph anyway, but the operation might fail.`);
? [targetFramework]
: targetFrameworks.filter((framework) => {
if (!depsParser.isSupportedByV2GraphGeneration(framework)) {
console.error(
console.warn(
`\x1b[33m⚠ WARNING\x1b[0m: The runtime resolution flag is currently only supported for the following TargetFrameworks: .NET versions 5 and higher, all versions of .NET Core and all versions of .NET Standard. Detected a TargetFramework: \x1b[1m${framework}\x1b[0m, which will be skipped.`,
);
return false;
Expand All @@ -210,7 +210,7 @@ Will attempt to build dependency graph anyway, but the operation might fail.`);
// Access the path of this project, to ensure we get the right .csproj file, in case of multiples present
const projectPath = projectAssets.project.restore.projectPath;
if (!projectPath) {
console.error(
console.warn(
`\x1b[33m⚠ WARNING\x1b[0m: Could not detect any projectPath in the project assets file, if your solution contains multiple projects in the same folder, this operation might fail.`,
);
}
Expand Down

0 comments on commit 2d9a68e

Please sign in to comment.