From a3cc38d4069dda5f01088594b75dec39788b41df Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Thu, 12 Jul 2018 23:39:17 +0200 Subject: [PATCH] Show error message if dependency library cannot be found --- src/core/elf.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/elf.cpp b/src/core/elf.cpp index 6ff738e..9c57454 100644 --- a/src/core/elf.cpp +++ b/src/core/elf.cpp @@ -99,7 +99,11 @@ namespace linuxdeploy { util::trim(libraryPath); paths.push_back(bf::absolute(libraryPath)); } else { - ldLog() << LD_DEBUG << "Invalid ldd output: " << line << std::endl; + if (util::stringContains("not found", line)) { + ldLog() << LD_ERROR << "Could not find dependency:" << line << std::endl; + } else { + ldLog() << LD_DEBUG << "Invalid ldd output: " << line << std::endl; + } } }