aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/StandardCompiler.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-27 05:53:54 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-27 06:25:49 +0800
commitf4b6bdad38ba82ad1d96f0ee669ca05c422010c0 (patch)
tree1c742a5e5f709c3860deff5f144c7f5a1a32fbdc /libsolidity/interface/StandardCompiler.cpp
parentfb7eec8dd5d6a92c233fd8104b76568c89021552 (diff)
downloaddexon-solidity-f4b6bdad38ba82ad1d96f0ee669ca05c422010c0.tar.gz
dexon-solidity-f4b6bdad38ba82ad1d96f0ee669ca05c422010c0.tar.zst
dexon-solidity-f4b6bdad38ba82ad1d96f0ee669ca05c422010c0.zip
DocstringParsingError is not thrown anymore in StandardCompiler
Diffstat (limited to 'libsolidity/interface/StandardCompiler.cpp')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp24
1 files changed, 8 insertions, 16 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp
index 48015ee6..dd135ce5 100644
--- a/libsolidity/interface/StandardCompiler.cpp
+++ b/libsolidity/interface/StandardCompiler.cpp
@@ -288,22 +288,14 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
/// This is only thrown in a very few locations.
catch (Error const& _error)
{
- if (_error.type() == Error::Type::DocstringParsingError)
- errors.append(formatError(
- false,
- "DocstringParsingError",
- "general",
- "Documentation parsing error: " + *boost::get_error_info<errinfo_comment>(_error)
- ));
- else
- errors.append(formatErrorWithException(
- _error,
- false,
- _error.typeName(),
- "general",
- "Uncaught error: ",
- scannerFromSourceName
- ));
+ errors.append(formatErrorWithException(
+ _error,
+ false,
+ _error.typeName(),
+ "general",
+ "Uncaught error: ",
+ scannerFromSourceName
+ ));
}
/// This should not be leaked from compile().
catch (FatalError const& _exception)