From 3d670920c0221b0f392d3d2f5eb03a3cba7037de Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Mon, 13 Nov 2023 17:46:46 +0800 Subject: [PATCH] chore: change to error Signed-off-by: Frost Ming --- src/pdm/cli/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdm/cli/actions.py b/src/pdm/cli/actions.py index 9c11f6dc09..43c57b219f 100644 --- a/src/pdm/cli/actions.py +++ b/src/pdm/cli/actions.py @@ -116,7 +116,7 @@ def do_lock( raise except ResolutionImpossible as err: ui.echo(f"{termui.Emoji.LOCK} Lock failed", err=True) - ui.echo(format_resolution_impossible(err), err=True) + ui.error(format_resolution_impossible(err)) raise ResolutionImpossible("Unable to find a resolution") from None else: data = format_lockfile(project, mapping, dependencies, groups=groups, strategy=lock_strategy)