`getProperty()` now throws error when the user or property specified is invalid

This commit is contained in:
Tristan B. Kildaire 2020-12-18 13:32:51 +02:00
parent 9389f89c8b
commit a4d746cd80
1 changed files with 6 additions and 1 deletions

View File

@ -238,7 +238,7 @@ public final class DClient
/* If it didn't work (user specified invalid) */
else
{
throw new DClientException("Invalid user for get property");
throw new DClientException("Invalid user for get propertys");
}
return properties;
@ -279,6 +279,11 @@ public final class DClient
/* Get the property line */
propertyValue = cast(string)resp[1..resp.length];
}
/* If it didn't work (user specified invalid) */
else
{
throw new DClientException("Invalid user or property for get property");
}
return propertyValue;
}