Show error message if dependency library cannot be found

This commit is contained in:
TheAssassin
2018-07-12 23:39:17 +02:00
parent 144fd2deb0
commit a3cc38d406

View File

@@ -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;
}
}
}