Use string interpolation for error message

This commit is contained in:
Kevin Sawicki
2013-02-22 09:15:47 -08:00
parent bfaf5b4952
commit c79fca1adb

View File

@@ -2,7 +2,7 @@ module.exports =
class GitRepository
constructor: (path) ->
unless repo = $git.getRepository(path)
throw new Error("No Git repository found searching path: " + path)
throw new Error("No Git repository found searching path: #{path}")
repo.constructor = GitRepository
repo.__proto__ = GitRepository.prototype
return repo