I was trying to delete a profile, but nothing was happening when I clicked on the DELETE button.
Checking the logs, there is this message:
Request Failed. DELETE /api/profile/8: Profile [8] is in use.
I think this needs to be captured and presented back to the user.
Exception:
NzbDrone.Core.Profiles.ProfileInUseException: Profile [8] is in use.
** at NzbDrone.Core.Profiles.ProfileService.Delete(Int32 id) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Profiles\ProfileService.cs:line 49**
** at NzbDrone.Api.Profiles.ProfileModule.DeleteProfile(Int32 id) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Api\Profiles\ProfileModule.cs:line 36**
** at NzbDrone.Api.REST.RestModule1.<set_DeleteResource>b__26_0(Object options) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Api\REST\RestModule.cs:line 66** ** at CallSite.Target(Closure , CallSite , Func
2 , Object )**
** at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)**