Skip to content

Instantly share code, notes, and snippets.

@stormsilver
Created October 27, 2009 20:26
Show Gist options
  • Save stormsilver/219921 to your computer and use it in GitHub Desktop.
Save stormsilver/219921 to your computer and use it in GitHub Desktop.
index 95b48a0..7dd897c 100644
--- a/chef/lib/chef/provider/subversion.rb
+++ b/chef/lib/chef/provider/subversion.rb
@@ -122,7 +122,7 @@ class Chef
# YAML doesn't appreciate input like "svn: '/tmp/deploydir' is not a working copy\n"
return nil
end
- raise "tried to run `#{command}' and got unexpected result #{result.inspect}" unless repo_attrs.kind_of?(Hash)
+ raise "Attempted to parse SVN info but could not. SVN info was:\n#{svn_info}" unless repo_attrs.kind_of?(Hash)
rev = (repo_attrs['Last Changed Rev'] || repo_attrs['Revision']).to_s
Chef::Log.debug "Resolved revision #{@new_resource.revision} to #{rev}"
rev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment