Skip to content

Commit 947eb7f

Browse files
authored
bucket notification - prevent undefined read on timeout (#8996)
Signed-off-by: Amit Prinz Setter <alphaprinz@gmail.com>
1 parent 826738a commit 947eb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/notifications_util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class Notificator {
161161

162162
async handle_failed_notification(notif, failure_append, err) {
163163
if (this.nc_config_fs) {
164-
new NoobaaEvent(NoobaaEvent.NOTIFICATION_FAILED).create_event(notif?.meta?.name, err, err.toString());
164+
new NoobaaEvent(NoobaaEvent.NOTIFICATION_FAILED).create_event(notif?.meta?.name, err, err?.toString());
165165
}
166166

167167
if (notif) {

0 commit comments

Comments
 (0)