Little spelling fix (#695)

* Fixed spelling of "occurred"

* Fix spelling of occurred.

* fixed one lingering misspelling
This commit is contained in:
Amanda Hickman 2018-01-03 06:52:55 -08:00 committed by Hugo Osvaldo Barrera
parent 289f60da44
commit c78ec6b3bd
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ from vdirsyncer import exceptions
def test_user_error_problems():
e = exceptions.UserError('A few problems occured', problems=[
e = exceptions.UserError('A few problems occurred', problems=[
'Problem one',
'Problem two',
'Problem three'
@ -11,4 +11,4 @@ def test_user_error_problems():
assert 'one' in str(e)
assert 'two' in str(e)
assert 'three' in str(e)
assert 'problems occured' in str(e)
assert 'problems occurred' in str(e)

View file

@ -144,9 +144,9 @@ def handle_cli_error(status_name=None, e=None):
import traceback
tb = traceback.format_tb(tb)
if status_name:
msg = 'Unknown error occured for {}'.format(status_name)
msg = 'Unknown error occurred for {}'.format(status_name)
else:
msg = 'Unknown error occured'
msg = 'Unknown error occurred'
msg += ': {}\nUse `-vdebug` to see the full traceback.'.format(e)