mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace the weird magic trap-waterfall-style flow in report_errors.sh with normal calls
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
ERROR_LOG="$(mktemp -t check_style_XXXXXX.log)"
|
||||
|
||||
. scripts/report_errors.sh
|
||||
|
||||
EXCLUDE_FILES=(
|
||||
"libsolutil/picosha2.h"
|
||||
"test/libsolutil/UTF8.cpp"
|
||||
@@ -23,6 +21,7 @@ if [[ "$WHITESPACE" != "" ]]
|
||||
then
|
||||
echo "Error: Trailing whitespace found:" | tee -a $ERROR_LOG
|
||||
echo "$WHITESPACE" | tee -a $ERROR_LOG
|
||||
scripts/report_errors.sh "$ERROR_LOG"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -51,6 +50,7 @@ if [[ "$FORMATERROR" != "" ]]
|
||||
then
|
||||
echo "Coding style error:" | tee -a $ERROR_LOG
|
||||
echo "$FORMATERROR" | tee -a $ERROR_LOG
|
||||
scripts/report_errors.sh "$ERROR_LOG"
|
||||
exit 1
|
||||
fi
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user