From 5fdcc71f7f9fed2ed3b9b012454b95f39da4510a Mon Sep 17 00:00:00 2001
From: Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de>
Date: Mon, 17 Feb 2025 16:09:24 +0100
Subject: [PATCH] ci: homogenize job messages

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cc817da..d90f7fd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -85,8 +85,6 @@ Check style:
     - |
       # pre-commit run --all-files
       pre-commit run --color=always --all-files || {
-        printf "${RED}The source code does not meet the style requirements:\n
-        ${CI_PROJECT_URL}/-/blob/${CI_DEFAULT_BRANCH}/CONTRIBUTING.md#coding-style.\n${DEFAULT}"
         git diff --ignore-submodules --patch-with-raw > "${STYLE_PATCH}"
         test -s "${STYLE_PATCH}" && {
           printf "${RED}At least some of the issues can be resolved with the patch (see artifacts):\n
@@ -95,6 +93,8 @@ Check style:
           printf "${RED}The issues cannot be resolved with a patch.\n${DEFAULT}"
           rm -rf "${STYLE_PATCH}"
         }
+        printf "${RED}You can reproduce this check locally with \`pre-commit run --all-files\`.
+      See also ${CI_PROJECT_URL}/-/blob/${CI_DEFAULT_BRANCH}/CONTRIBUTING.md#coding-style.\n${DEFAULT}"
         exit 1
       }
   artifacts:
-- 
GitLab