mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
Fixing misleading error message
This commit is contained in:
@@ -247,7 +247,7 @@ namespace ICD.Common.Services
|
|||||||
|
|
||||||
if (m_Services.ContainsKey(tService))
|
if (m_Services.ContainsKey(tService))
|
||||||
{
|
{
|
||||||
string message = string.Format(string.Format("{0} already contains a {0} service", GetType().Name, tService.Name));
|
string message = string.Format("{0} already contains a {1} service", GetType().Name, tService.Name);
|
||||||
throw new InvalidOperationException(message);
|
throw new InvalidOperationException(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user