mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11627 from ethereum/allowEmptyFileName
Include locations with empty source name.
This commit is contained in:
@@ -83,7 +83,7 @@ Json::Value formatFatalError(string const& _type, string const& _message)
|
||||
Json::Value formatSourceLocation(SourceLocation const* location)
|
||||
{
|
||||
Json::Value sourceLocation;
|
||||
if (location && location->source && !location->source->name().empty())
|
||||
if (location && location->source)
|
||||
{
|
||||
sourceLocation["file"] = location->source->name();
|
||||
sourceLocation["start"] = location->start;
|
||||
|
||||
Reference in New Issue
Block a user