printing proper error message

This commit is contained in:
Afshan 2020-04-13 18:39:14 +05:30
parent b0e236badd
commit e6ff382d14

View file

@ -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