From ef5d6870a17147bef04b97a77a83d0dbbff522c4 Mon Sep 17 00:00:00 2001 From: dmharrah Date: Sun, 30 Aug 2009 01:28:12 +0000 Subject: [PATCH] Fix error "source not found" exposed by fix for bug #39 git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@975 d89573ee-9141-11dd-94d4-bdf5e562f29c --- src/main/scala/sbt/Format.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/sbt/Format.scala b/src/main/scala/sbt/Format.scala index 5e2f70425..fa7cceb5d 100644 --- a/src/main/scala/sbt/Format.scala +++ b/src/main/scala/sbt/Format.scala @@ -19,7 +19,7 @@ object Format { def path(basePath: Path): Format[Path] = new Format[Path] { - def toString(path: Path) = path.relativePath + def toString(path: Path) = Path.relativize(basePath.asFile, path.asFile).getOrElse(error("Path " + path + " not in " + basePath)) def fromString(s: String) = Path.fromString(basePath, s) } implicit val file: Format[File] = new Format[File]