Skip to content

Commit 3f64d99

Browse files
authored
Merge pull request #570 from michaelnabil230/patch-1
Show name of the job in the Exception
2 parents 92188aa + fe7d204 commit 3f64d99

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)