src/Pure/General/file.ML
changeset 63668 5efaa884ac6c
parent 62854 d8cf59edf819
child 64304 96bc94c87a81
--- a/src/Pure/General/file.ML	Thu Aug 11 15:36:17 2016 +0200
+++ b/src/Pure/General/file.ML	Thu Aug 11 18:26:16 2016 +0200
@@ -98,11 +98,11 @@
 
 fun check_dir path =
   if exists path andalso is_dir path then path
-  else error ("No such directory: " ^ Path.print path);
+  else error ("No such directory: " ^ Path.print (Path.expand path));
 
 fun check_file path =
   if exists path andalso not (is_dir path) then path
-  else error ("No such file: " ^ Path.print path);
+  else error ("No such file: " ^ Path.print (Path.expand path));
 
 
 (* open streams *)