aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/CommonIO.cpp
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2017-10-04 01:48:53 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-04-06 17:03:52 +0800
commitf39f36f2c7f38ecc8c171447de4c65c8cb968640 (patch)
treea5c00ddf4943796cb0be0b0e8849dd6b98fd2c68 /libdevcore/CommonIO.cpp
parent309a90bb5da06a5f54cd976b7da647e3bfece2e3 (diff)
downloaddexon-solidity-f39f36f2c7f38ecc8c171447de4c65c8cb968640.tar.gz
dexon-solidity-f39f36f2c7f38ecc8c171447de4c65c8cb968640.tar.zst
dexon-solidity-f39f36f2c7f38ecc8c171447de4c65c8cb968640.zip
Fix file missing error message on imports.
Trying to convert an import path into a Boost canonical path causes boost to throw an exception if the given file does not exist. Thus, instead of geting to the 'File not found' error, we instead got into the cath-all handler for 'Unknown exception in read callback'. This change rearranges the file checks to happen before we create a canonical Boost path. It also drive-by removes the unnecessary 'else' block, as the body of the if is a guard-like return block.
Diffstat (limited to 'libdevcore/CommonIO.cpp')
0 files changed, 0 insertions, 0 deletions