More error output if global activities forbidden

This commit is contained in:
3wc 2024-02-10 03:35:00 -03:00
parent fea15472e3
commit 1db3591c05

View File

@ -680,8 +680,7 @@ def _import(search, after, before):
and not mappings[0].kimai_project.allow_global_activities
):
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}",
fg="red",
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",
)
has_errors = True
continue