printing proper error message
This commit is contained in:
parent
b0e236badd
commit
e6ff382d14
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue