Skip to content

Commit df108e2

Browse files
Update src/azure-cli-core/azure/cli/core/commands/__init__.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7bc0289 commit df108e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/azure-cli-core/azure/cli/core/commands/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ def _what_if(self, args):
730730
)
731731
except Exception as ex:
732732
# If what-if service fails, still show an informative message
733-
return CommandResultItem(None, exit_code=1, error=CLIError('What-if preview failed: {str(ex)}\nNote: This was a preview operation. No actual changes were made.'))
733+
return CommandResultItem(None, exit_code=1, error=CLIError(f'What-if preview failed: {str(ex)}\nNote: This was a preview operation. No actual changes were made.'))
734734

735735
@staticmethod
736736
def _extract_parameter_names(args):

0 commit comments

Comments
 (0)