Update output logging in hack/verify-gofmt.sh
@@ -5,9 +5,8 @@ os::golang::verify_go_version
bad_files=$(os::util::list_go_src_files | xargs gofmt -s -l)
if [[ -n "${bad_files}" ]]; then
- echo "!!! gofmt needs to be run on the following files: " >&2
+ os::log::warning "!!! gofmt needs to be run on the following files: "
echo "${bad_files}"
- echo "Try running 'gofmt -s -d [path]'" >&2
- echo "Or autocorrect with 'hack/verify-gofmt.sh | xargs -n 1 gofmt -s -w'" >&2
- exit 1
+ os::log::fatal "Try running 'gofmt -s -d [path]'
+Or autocorrect with 'hack/verify-gofmt.sh | xargs -n 1 gofmt -s -w'"
fi
