Skip to content

Commit

Permalink
Improve can't find root error message
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Aug 15, 2009
1 parent c176031 commit c8708da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions textmate.el
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,12 @@
(defun textmate-goto-file ()
(interactive)
(let ((root (textmate-project-root)))
(when (null root)
(error "Can't find a suitable project root(.git/Rakefile/Makefile) directory"))
(when (null root)
(error
(concat
"Can't find a sutiable project root ("
(string-join " " *textmate-project-roots* )
")")))
(find-file
(concat
(expand-file-name root) "/"
Expand Down

0 comments on commit c8708da

Please sign in to comment.