Merge pull request #12097 from ethereum/better-errors-from-compile-full

Less verbose errors from `compileFull()`
This commit is contained in:
Kamil Śliwak 2021-10-06 19:57:03 +02:00 committed by GitHub
commit 0549c42c07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,7 @@
# ------------------------------------------------------------------------------
YULARGS=(--strict-assembly)
FULLARGS=(--optimize --ignore-missing --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,hashes,metadata,opcodes,srcmap,srcmap-runtime,userdoc")
FULLARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,hashes,metadata,opcodes,srcmap,srcmap-runtime,userdoc")
OLDARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,interface,metadata,opcodes,srcmap,srcmap-runtime,userdoc")
function compileFull()
{
@ -99,7 +99,7 @@ function compileFull()
printError "Inside directory:"
echo " $(pwd)"
printError "Input was:"
cat -- "${files[@]}"
echo "${files[@]}"
false
fi
}

View File

@ -424,7 +424,8 @@ printTask "Compiling various other contracts and libraries..."
do
echo " - $dir"
cd "$dir"
compileFull --expect-warnings ./*.sol ./*/*.sol
# shellcheck disable=SC2046 # These file names are not supposed to contain spaces.
compileFull --expect-warnings $(find . -name '*.sol')
cd ..
done
)