From e10783ec548a276165788246570b9742aea11494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Thu, 4 Jul 2024 19:38:36 +0200 Subject: [PATCH] Fixed error message when trying to change prio to a used number. --- notification_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notification_manager.go b/notification_manager.go index 1690d8e..28afa62 100644 --- a/notification_manager.go +++ b/notification_manager.go @@ -101,7 +101,7 @@ func UpdateNotificationService(svc notification.Service) (created bool, err erro // Check if this is just a duplicated prio, which isn't allowed. pgErr, isPgErr := err.(*pq.Error) if isPgErr && pgErr.Code == "23505" { - return false, werr.New("Prio %d is already used by another service", svc.GetPrio()) + return false, werr.New("Prio %d is already used by another service", svc.Updated().GetPrio()) } return false, werr.Wrap(err).WithData(