From e6ff382d14af27140e13ea5014bb60e4cca5f65d Mon Sep 17 00:00:00 2001 From: Afshan Date: Mon, 13 Apr 2020 18:39:14 +0530 Subject: [PATCH] printing proper error message --- .github/workflows/check_translation_format.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_translation_format.yml b/.github/workflows/check_translation_format.yml index e5d2031182..6b8ba91e99 100644 --- a/.github/workflows/check_translation_format.yml +++ b/.github/workflows/check_translation_format.yml @@ -1,4 +1,4 @@ -name: Check format +name: frappe_linter on: pull_request: branches: @@ -35,8 +35,9 @@ jobs: verify = pattern.search(line) if not verify: errors_encounter += 1 - print(num) - print(line) + print('A syntax error has been discovered at line number: ' + num) + print('Syntax error occured with: ' + line) if errors_encounter > 0 : + print('You can visit "https://frappe.io/docs/user/en/translations" to resolve this error.') assert 1+1 == 3 shell: python \ No newline at end of file