class Bundler::PermissionError

def message

def message
  action = case @permission_type
           when :read then "read from"
           when :write then "write to"
           when :executable, :exec then "execute"
           else @permission_type.to_s
  end
  "There was an error while trying to #{action} `#{@path}`. " \
  "It is likely that you need to grant #{@permission_type} permissions " \
  "for that path."
end