More error output if global activities forbidden
This commit is contained in:
parent
fea15472e3
commit
1db3591c05
@ -680,8 +680,7 @@ def _import(search, after, before):
|
|||||||
and not mappings[0].kimai_project.allow_global_activities
|
and not mappings[0].kimai_project.allow_global_activities
|
||||||
):
|
):
|
||||||
click.secho(
|
click.secho(
|
||||||
f"fact {f.id}: project @{mappings[0].kimai_project.id} {mappings[0].kimai_project.name} does not allow global activity {mappings[0].kimai_activity}",
|
f"fact {f.id}: project @{mappings[0].kimai_project.id} {mappings[0].kimai_project.name} does not allow global activity {mappings[0].kimai_activity} ({mappings[0].hamster_activity.name})", fg="red",
|
||||||
fg="red",
|
|
||||||
)
|
)
|
||||||
has_errors = True
|
has_errors = True
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user