summaryrefslogtreecommitdiff
path: root/tools/patman
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-07-17 13:25:45 -0600
committerSimon Glass <sjg@chromium.org>2018-08-01 16:30:48 -0600
commit4f5dea4543f2b7ebea803fe9b176abf5b637d988 (patch)
treeffc3167a645ed850c89732b76e2d1b620633b91c /tools/patman
parent0ef87aa332e024c94d07a897c9f595be37077de8 (diff)
patman: Show the current directory in GetInputFilename()
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>
Diffstat (limited to 'tools/patman')
-rw-r--r--tools/patman/tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/patman/tools.py b/tools/patman/tools.py
index 006306bd60..e80481438b 100644
--- a/tools/patman/tools.py
+++ b/tools/patman/tools.py
@@ -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: