From 2a8cff626b9be044a165475b70eef379f5bc7535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Thu, 19 Nov 2020 19:57:35 +0100 Subject: [PATCH] CommandLineInterface::link(): Print invalid link references to stderr --- solc/CommandLineInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 7d3f7d763..b74cc224f 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -55,6 +55,7 @@ #include #include +#include #include #include @@ -1788,6 +1789,7 @@ bool CommandLineInterface::link() ) { serr() << "Error in binary object file " << src.first << " at position " << (it - src.second.begin()) << endl; + serr() << '"' << string(it, it + min(placeholderSize, static_cast(end - it))) << "\" is not a valid link reference." << endl; return false; }