mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
common.sh: Adjust formatting in msg_on_error() and add stack trace
This commit is contained in:
parent
b85172b055
commit
3b1b9a0bfb
@ -138,24 +138,30 @@ function msg_on_error()
|
||||
rm "$stdout_file" "$stderr_file"
|
||||
return 0
|
||||
else
|
||||
printError "Command failed: $SOLC ${command[*]}"
|
||||
printError ""
|
||||
printError "Command failed: ${error_message}"
|
||||
printError " command: $SOLC ${command[*]}"
|
||||
if [[ -s "$stdout_file" ]]
|
||||
then
|
||||
printError "stdout:"
|
||||
printError "--- stdout ---"
|
||||
printError "-----------"
|
||||
>&2 cat "$stdout_file"
|
||||
printError "--------------"
|
||||
else
|
||||
printError " stdout: <EMPTY>"
|
||||
fi
|
||||
if [[ -s "$stderr_file" ]]
|
||||
then
|
||||
printError "stderr:"
|
||||
printError "--- stderr ---"
|
||||
>&2 cat "$stderr_file"
|
||||
printError "--------------"
|
||||
else
|
||||
printError " stderr: <EMPTY>"
|
||||
fi
|
||||
|
||||
printError "$error_message"
|
||||
rm "$stdout_file" "$stderr_file"
|
||||
|
||||
printStackTrace
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user