Skip to content

Commit

Permalink
“Convert Single Character”: Show errors as tooltip
Browse files Browse the repository at this point in the history
The command now displays a tooltip containing an error message if it
could not parse the configuration file.
  • Loading branch information
sanssecours committed Oct 30, 2015
1 parent 170b7f2 commit fb409d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Support/lib/support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class CONFIGURATION
# mapping.
def self.character_map
YAML.load_file(location)
rescue RuntimeError => error
TextMate.exit_show_tool_tip(error.message)
end

# Open the configuration file in TextMate.
Expand Down

0 comments on commit fb409d5

Please sign in to comment.