Skip to content

Commit 7af57c4

Browse files
committed
include status code changes in exception
1 parent 6577edf commit 7af57c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/Jobs/UpdateSite.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,12 @@ public function handle(): void
157157
if ($afterUpdateCode !== $this->preUpdateCode) {
158158
throw new UpdateException(
159159
"afterUpdate",
160-
"Status code has changed after update for site: " . $this->site->id
160+
sprintf(
161+
"Status code has changed from %s to %s after update for site: %s",
162+
$this->preUpdateCode,
163+
$afterUpdateCode,
164+
$this->site->id
165+
)
161166
);
162167
}
163168

0 commit comments

Comments
 (0)