Skip to content

Commit

Permalink
Improve error messages when building (#4871)
Browse files Browse the repository at this point in the history
Improve error messages when building
Signed-off-by: Chong Gao <res_life@163.com>
  • Loading branch information
Chong Gao authored Mar 7, 2022
1 parent d30adec commit 12bd1e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dist/scripts/check-shims-revisions.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,6 +37,12 @@ function check-shims-revisions() {
if [ -n "$pre_revision" ] && [[ "$curr_revision" != "$pre_revision" ]] ; then
echo >&2 "Check Failed: git revisions between shims are not equal"
echo >&2 "Please check the revisions of each shim to see which one is inconsistent. Note, if building with Databricks those jars are built separately."

echo >&2 "-------------"
echo >&2 "Version file ${pre_shim_version_path}, revision is ${pre_revision}"
echo >&2 "Version file ${shim_version_path}, revision is ${curr_revision}"
echo >&2 "------------"

exit 1
fi
pre_revision="${curr_revision}"
Expand Down

0 comments on commit 12bd1e6

Please sign in to comment.