mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
Change return error from ErrNotFound to ErrDSPProfileNotFound
This commit is contained in:
committed by
Dan Christian Bogos
parent
6c094f658c
commit
831cfdf050
@@ -1694,7 +1694,7 @@ func (dm *DataManager) RemoveDispatcherProfile(ctx *context.Context, tenant, id
|
||||
return utils.ErrNoDatabaseConn
|
||||
}
|
||||
oldDpp, err := dm.GetDispatcherProfile(ctx, tenant, id, true, false, utils.NonTransactional)
|
||||
if err != nil && err != utils.ErrNotFound {
|
||||
if err != nil && err != utils.ErrDSPProfileNotFound {
|
||||
return err
|
||||
}
|
||||
if err = dm.DataDB().RemoveDispatcherProfileDrv(ctx, tenant, id); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user