Skip to content

Commit

Permalink
Improved error message if sketchup plugin fails to load
Browse files Browse the repository at this point in the history
  • Loading branch information
macumber authored and axelstudios committed Aug 14, 2014
1 parent fe09230 commit 7a5c5a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openstudiocore/ruby/openstudio/sketchup_plugin/Startup.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ begin
else
load("openstudio/sketchup_plugin/lib/PluginManager.rb")
end
rescue LoadError
UI.messagebox("The OpenStudio SketchUp Plug-In is only compatible with OS 10.8 and later", MB_OK)
rescue LoadError => e
UI.messagebox("Error loading OpenStudio SketchUp Plug-In:\n #{e.message}", MB_OK)
end
4 changes: 2 additions & 2 deletions openstudiocore/ruby/openstudio/sketchup_plugin/Startup_dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ begin
else
load("openstudio/sketchup_plugin/lib/PluginManager.rb")
end
rescue LoadError
UI.messagebox("The OpenStudio SketchUp Plug-In is only compatible with OS 10.8 and later", MB_OK)
rescue LoadError => e
UI.messagebox("Error loading OpenStudio SketchUp Plug-In:\n #{e.message}", MB_OK)
end

0 comments on commit 7a5c5a4

Please sign in to comment.