diff src/org/tmatesoft/hg/util/Path.java @ 623:fedc54356091

Update tests for Windows; TestCommit: use copy of a repo (not clone) to preserve old timestamps
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 20 May 2013 18:35:13 +0200
parents 072b5f3ed0c8
children 170b6ecc890e
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/Path.java	Mon May 20 16:56:40 2013 +0200
+++ b/src/org/tmatesoft/hg/util/Path.java	Mon May 20 18:35:13 2013 +0200
@@ -159,7 +159,7 @@
 		}
 		String p = path.toString();
 		if (p.indexOf('\\') != -1) {
-			throw new IllegalArgumentException();
+			throw new IllegalArgumentException(String.format("Path '%s' contains illegal char at %d", p, p.indexOf('\\')));
 		}
 		Path rv = new Path(p);
 		return rv;