lib/pgit/current_project/validator.rb in pgit-0.0.4 vs lib/pgit/current_project/validator.rb in pgit-1.0.0
- old
+ new
@@ -1,10 +1,11 @@
module PGit
class CurrentProject
class Validator
def initialize(matching_projects)
if matching_projects.length == 0
- raise PGit::CurrentProject::NoPathsMatchWorkingDirError.new
+ message = "None of the project paths matches the working directory"
+ raise PGit::Error::User, message
end
end
end
end
end