[act] better message at the end of 'guideline' command

parent ea89879d
......@@ -67,9 +67,12 @@ def specialActions(current):
# trace(current,"Special action [guideline]")
nbrError=guideline(current,current['correction'])
if nbrError>0:
critic(("{} Guideline error(s) found.\n"+
"Please consider using [act guideline --correction] in order to correct those errors.").format(nbrError),
None,nbrError)
if not current['correction']:
critic(("{} Guideline error(s) found.\n"+
"Please consider using [act guideline --correction] in order to correct those errors.").format(nbrError),
None,nbrError)
else:
critic(("{} Guideline error(s) found.").format(nbrError),None,nbrError)
else:
notif("No guideline error found.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment