From 9c07c9609dbc9bbeb211b3bd38195f19ab42904c Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 20 Jul 2018 09:56:58 +0100 Subject: COMPMID-1246: Print the name of the file that cannot be loaded Change-Id: I60e0ad323ea3c6c61be2d41d2125188bc52eaf17 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/140733 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- utils/GraphUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/GraphUtils.cpp b/utils/GraphUtils.cpp index 5c1fda5ca6..0ce6076f6e 100644 --- a/utils/GraphUtils.cpp +++ b/utils/GraphUtils.cpp @@ -604,7 +604,7 @@ bool NumPyBinLoader::access_tensor(ITensor &tensor) // Open file std::ifstream stream(_filename, std::ios::in | std::ios::binary); - ARM_COMPUTE_ERROR_ON_MSG(!stream.good(), "Failed to load binary data"); + ARM_COMPUTE_ERROR_ON_MSG(!stream.good(), "Failed to load binary data from %s", _filename.c_str()); std::string header = npy::read_header(stream); // Parse header -- cgit v1.2.1