Skip to content

Commit

Permalink
Improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aguspe committed Jul 29, 2024
1 parent 113c407 commit 27d6885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/plugin/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def add_plugin(plugin_name)
end

def delete_plugin(plugin_name)
return gemfile_guard unless File.exist?('Gemfile')
return 'The plugin is not installed' unless installed_plugins.include?(plugin_name)

pp "Deleting #{plugin_name}..."
Expand Down
2 changes: 1 addition & 1 deletion lib/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.3
1.0.4

0 comments on commit 27d6885

Please sign in to comment.