Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plist parse updates #4889

Merged
merged 2 commits into from
Jun 15, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/cask/system_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ def self._parse_plist(command, output)
raise Plist::ParseError "Empty XML output"
end
xml
rescue Plist::ParseError
rescue Plist::ParseError => e
raise CaskError.new(<<-ERRMSG)
Error parsing plist output from command.
command was:
#{command.utf8_inspect}
error was:
#{e}
output we attempted to parse:
#{output}
ERRMSG
Expand Down
2 changes: 1 addition & 1 deletion lib/plist/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Plist
# + Date elements are returned as DateTime objects.
# + Data elements are implemented as Tempfiles
#
# Plist::parse_xml will blow up if it encounters a data element.
# Plist::parse_xml will blow up if it encounters a Date element.
# If you encounter such an error, or if you have a Date element which
# can't be parsed into a Time object, please send your plist file to
# [email protected] so that I can implement the proper support.
Expand Down