Skip to content

Commit

Permalink
updated solution if "make format" command fails
Browse files Browse the repository at this point in the history
Summary: Closes facebook/rocksdb#2016

Differential Revision: D4747003

Pulled By: yiwu-arbug

fbshipit-source-id: c1e2c5a
  • Loading branch information
Raza Hussain authored and facebook-github-bot committed Mar 21, 2017
1 parent 8f5bf04 commit 4b04add
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build_tools/format-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ fi
# Check clang-format-diff.py
if ! which $CLANG_FORMAT_DIFF &> /dev/null
then
echo "You didn't have clang-format-diff.py available in your computer!"
echo "You can download it by running: "
echo "You didn't have clang-format-diff.py and/or clang-format available in your computer!"
echo "You can download clang-format-diff.py by running: "
echo " curl --location http://goo.gl/iUW1u2 -o ${CLANG_FORMAT_DIFF}"
echo "and move ${CLANG_FORMAT_DIFF} to some directory within PATH=${PATH}"
echo "You can download clang-format by running: "
echo " brew install clang-format"
echo "Then, move both files (i.e. ${CLANG_FORMAT_DIFF} and clang-format) to some directory within PATH=${PATH}"
exit 128
fi

Expand Down

0 comments on commit 4b04add

Please sign in to comment.