mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use string interpolation for error message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user