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