summaryrefslogtreecommitdiffstats
path: root/test/util/autoload.rb
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-06-27 13:33:31 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-07-08 09:58:20 -0700
commitfaf8a5c05f50d98835a1db05b96146618f485a04 (patch)
tree942d6d2f72acb967cb0e8baa722e01e8258bc85d /test/util/autoload.rb
parentcf93404e53aa32ac4a919ddd57d09ed78abfc1b5 (diff)
downloadpuppet-faf8a5c05f50d98835a1db05b96146618f485a04.tar.gz
puppet-faf8a5c05f50d98835a1db05b96146618f485a04.tar.xz
puppet-faf8a5c05f50d98835a1db05b96146618f485a04.zip
(#7581) Provide more detailed error message when missing gems on Windows
Running Puppet on Windows requires the sys-admin, win32-process & win32-dir gems. If any of these gems were missing, Puppet would fail with the message "Cannot determine basic system flavour". When trying to determine if we are on Windows, we now warn with the message "Cannot run on Microsoft Windows without the sys-admin, win32-process & win32-dir gems: #{err}", where err is the normal ruby load error message stating which gem could not be loaded. We also only warn if the POSIX feature is not present. Signed-off-by: James Turnbull <james@puppetlabs.com> Signed-off-by: Jacob Helwig <jacob@puppetlabs.com> Reviewed-by: Cameron Thomas <cameron@puppetlabs.com>
Diffstat (limited to 'test/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions