]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
patman: Show the current directory in GetInputFilename()
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jul 2018 19:25:45 +0000 (13:25 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 1 Aug 2018 22:30:48 +0000 (16:30 -0600)
When this fails it is useful to see the current directory, since U-Boot's
build system will typically change into the output directory during the
build. Add this information to the error.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/tools.py

index 006306bd60fea704ff56d2c0b2855917827485bf..e80481438b547b8dc9b2a80964e41d7232d7a5cd 100644 (file)
@@ -116,8 +116,8 @@ def GetInputFilename(fname):
         if os.path.exists(pathname):
             return pathname
 
-    raise ValueError("Filename '%s' not found in input path (%s)" %
-                     (fname, ','.join(indir)))
+    raise ValueError("Filename '%s' not found in input path (%s) (cwd='%s')" %
+                     (fname, ','.join(indir), os.getcwd()))
 
 def Align(pos, align):
     if align: