let the user know the powershell script must end in .ps1 on failure

This commit is contained in:
Tim W 2021-11-30 06:17:41 +00:00
parent 5e05ce872e
commit 0d5eef029a
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class Console::CommandDispatcher::Powershell
result = client.powershell.import_file(opts)
if result.nil? || result == false
print_error("File failed to load.")
print_error('File failed to load. The file must end in ".ps1" or ".dll".')
elsif result == true || result.empty?
print_good("File successfully imported. No result was returned.")
else