Skip to content

Commit fe7d204

Browse files
Show name of the job in the Exception
1 parent 92188aa commit fe7d204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exceptions/CurrentTenantCouldNotBeDeterminedInTenantAwareJob.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ class CurrentTenantCouldNotBeDeterminedInTenantAwareJob extends Exception
99
{
1010
public static function noIdSet(JobProcessing $event)
1111
{
12-
return new static("The current tenant could not be determined in a job named `" . $event->job->getName() . "`. No `tenantId` was set in the payload.");
12+
return new static("The current tenant could not be determined in a job named `" . $event->job->resolveName() . "`. No `tenantId` was set in the payload.");
1313
}
1414

1515
public static function noTenantFound(JobProcessing $event): static
1616
{
17-
return new static("The current tenant could not be determined in a job named `" . $event->job->getName() . "`. The tenant finder could not find a tenant.");
17+
return new static("The current tenant could not be determined in a job named `" . $event->job->resolveName() . "`. The tenant finder could not find a tenant.");
1818
}
1919
}

0 commit comments

Comments
 (0)