diff options
author | chriseth <c@ethdev.com> | 2017-02-25 02:31:20 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-02-25 02:32:41 +0800 |
commit | 7a24a5764edf728f0caa14e7aa8f832d7e6f42e3 (patch) | |
tree | 3401978cddc171067362ab904364204b90c9e3d0 /solc | |
parent | d2c79bf8e9400f783bf0feed34065882eae02a68 (diff) | |
download | dexon-solidity-7a24a5764edf728f0caa14e7aa8f832d7e6f42e3.tar.gz dexon-solidity-7a24a5764edf728f0caa14e7aa8f832d7e6f42e3.tar.zst dexon-solidity-7a24a5764edf728f0caa14e7aa8f832d7e6f42e3.zip |
Add line info to serious exceptions.
Diffstat (limited to 'solc')
-rw-r--r-- | solc/jsonCompiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp index d761b541..6ebd1a55 100644 --- a/solc/jsonCompiler.cpp +++ b/solc/jsonCompiler.cpp @@ -184,15 +184,15 @@ string compile(StringMap const& _sources, bool _optimize, CStyleReadFileCallback } catch (CompilerError const& exception) { - errors.append(formatError(exception, "Compiler error", scannerFromSourceName)); + errors.append(formatError(exception, "Compiler error (" + exception.lineInfo() + ")", scannerFromSourceName)); } catch (InternalCompilerError const& exception) { - errors.append(formatError(exception, "Internal compiler error", scannerFromSourceName)); + errors.append(formatError(exception, "Internal compiler error (" + exception.lineInfo() + ")", scannerFromSourceName)); } catch (UnimplementedFeatureError const& exception) { - errors.append(formatError(exception, "Unimplemented feature", scannerFromSourceName)); + errors.append(formatError(exception, "Unimplemented feature (" + exception.lineInfo() + ")", scannerFromSourceName)); } catch (Exception const& exception) { |