Severity: Warning
File: src/Servy.Core/Services/ServiceManager.cs
Lines: 309–314
Description:
throw new ArgumentException(nameof(options.ServiceName)) passes nameof(options.ServiceName) as the message parameter, not the paramName parameter. The exception displays "ServiceName" as the error description rather than a meaningful message.
Suggested fix:
Use throw new ArgumentException("Value is required.", nameof(options.ServiceName));
Severity: Warning
File:
src/Servy.Core/Services/ServiceManager.csLines: 309–314
Description:
throw new ArgumentException(nameof(options.ServiceName))passesnameof(options.ServiceName)as themessageparameter, not theparamNameparameter. The exception displays"ServiceName"as the error description rather than a meaningful message.Suggested fix:
Use
throw new ArgumentException("Value is required.", nameof(options.ServiceName));