Skip to content

Commit 5fcc06d

Browse files
authored
Add more info in error message in email
1 parent 100d91b commit 5fcc06d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Updater.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,21 @@ private function Mail()
155155
<body>
156156
<p>Dear Admin,</p>
157157
<p>We regret to inform you that the latest update for the {{ REPOSITORY }} repository has failed. Please take appropriate action to resolve the issue.</p>
158+
<p>Update Info:</p>
159+
<table>
160+
<tr>
161+
<td>Username</td>
162+
<td>' . $username . '</td>
163+
</tr>
164+
<tr>
165+
<td>Repository</td>
166+
<td>' . $repository . '</td>
167+
</tr>
168+
<tr>
169+
<td>Plugin Version</td>
170+
<td>' . $version . '</td>
171+
</tr>
172+
</table>
158173
<p>Update Logs:</p>
159174
<table>
160175
' . implode("", array_map(function ($entry) {

0 commit comments

Comments
 (0)