mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Little spelling fix (#695)
* Fixed spelling of "occurred" * Fix spelling of occurred. * fixed one lingering misspelling
This commit is contained in:
parent
39c2df99eb
commit
cd6cb92b59
2 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ from vdirsyncer import exceptions
|
||||||
|
|
||||||
|
|
||||||
def test_user_error_problems():
|
def test_user_error_problems():
|
||||||
e = exceptions.UserError('A few problems occured', problems=[
|
e = exceptions.UserError('A few problems occurred', problems=[
|
||||||
'Problem one',
|
'Problem one',
|
||||||
'Problem two',
|
'Problem two',
|
||||||
'Problem three'
|
'Problem three'
|
||||||
|
|
@ -11,4 +11,4 @@ def test_user_error_problems():
|
||||||
assert 'one' in str(e)
|
assert 'one' in str(e)
|
||||||
assert 'two' in str(e)
|
assert 'two' in str(e)
|
||||||
assert 'three' in str(e)
|
assert 'three' in str(e)
|
||||||
assert 'problems occured' in str(e)
|
assert 'problems occurred' in str(e)
|
||||||
|
|
|
||||||
|
|
@ -146,9 +146,9 @@ def handle_cli_error(status_name=None, e=None):
|
||||||
import traceback
|
import traceback
|
||||||
tb = traceback.format_tb(tb)
|
tb = traceback.format_tb(tb)
|
||||||
if status_name:
|
if status_name:
|
||||||
msg = 'Unknown error occured for {}'.format(status_name)
|
msg = 'Unknown error occurred for {}'.format(status_name)
|
||||||
else:
|
else:
|
||||||
msg = 'Unknown error occured'
|
msg = 'Unknown error occurred'
|
||||||
|
|
||||||
msg += ': {}\nUse `-vdebug` to see the full traceback.'.format(e)
|
msg += ': {}\nUse `-vdebug` to see the full traceback.'.format(e)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue