Skip to content

Commit bad8a2e

Browse files
author
jordanbreen28
committed
(CAT-1991) - Warn on invalid dir
This commit updates the initialize method in Pwsh::Manager to only warn not raise on invalid_directory returning true.
1 parent 20cdd9f commit bad8a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pwsh.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def initialize(cmd, args = [], options = {})
108108
@powershell_command = cmd
109109
@powershell_arguments = args
110110

111-
raise "Bad configuration for ENV['lib']=#{ENV['lib']} - invalid path" if Pwsh::Util.invalid_directories?(ENV['lib'])
111+
warn "Bad configuration for ENV['lib']=#{ENV['lib']} - invalid path" if Pwsh::Util.invalid_directories?(ENV['lib'])
112112

113113
if Pwsh::Util.on_windows?
114114
# Named pipes under Windows will automatically be mounted in \\.\pipe\...

0 commit comments

Comments
 (0)