make error message prettier
This commit is contained in:
parent
7aaf73cb37
commit
e932687210
1 changed files with 2 additions and 1 deletions
|
|
@ -189,7 +189,8 @@ def ell(
|
|||
|
||||
offsets += extension
|
||||
if extension < 0:
|
||||
raise BuildError(f'Position is too close by at least {-numpy.floor(extension)}. Total extensions would be'
|
||||
ext_floor = -numpy.floor(extension)
|
||||
raise BuildError(f'Position is too close by at least {ext_floor}. Total extensions would be\n\t'
|
||||
+ '\n\t'.join(f'{key}: {off}' for key, off in zip(ports.keys(), offsets)))
|
||||
|
||||
result = dict(zip(ports.keys(), offsets))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue