From: Simon Glass Date: Tue, 17 Jul 2018 13:25:45 -0600 Subject: [U-Boot] [PATCH 22/29] patman: Show the current directory in GetInputFilename() In-Reply-To: <20180717192552.198496-1-sjg@chromium.org> References: <20180717192552.198496-1-sjg@chromium.org> Message-ID: <20180717192552.198496-23-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- tools/patman/tools.py | 4 ++-- 1 file 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: -- 2.18.0.203.gfac676dfb9-goog