diff --git a/scripts/lint_version.sh b/scripts/lint_version.sh
index 32355d207170ce14e68648ad0392451c4dae2b0a..81aa0476cb23c1fe70fc8d360b7c2f9ae1bfc0ba 100755
--- a/scripts/lint_version.sh
+++ b/scripts/lint_version.sh
@@ -5,7 +5,7 @@ default_version=$(git show origin/${CI_DEFAULT_BRANCH}:${CHART_FILE} | grep -oP
 
 # check for command error
 if [ $? -ne 0 ]; then
-  echo "Error: An unknown error has occurred when attempting to retrieve the default version from ${CHART_FILE}"
+  echo "Error: An unknown error has occurred while attempting to retrieve the default version from ${CHART_FILE}"
   exit 1
 fi
 
@@ -14,7 +14,7 @@ local_version=$(cat ${CHART_FILE} | grep -oP 'version: \K(.*)')
 
 # check for command error
 if [ $? -ne 0 ]; then
-  echo "Error: An unknown error has occurred when attempting to retrieve the local version from ${CHART_FILE}"
+  echo "Error: An unknown error has occurred while attempting to retrieve the local version from ${CHART_FILE}"
   exit 1
 fi