mirror of https://github.com/deavminet/libdnet.git
`getProperty()` now throws error when the user or property specified is invalid
This commit is contained in:
parent
9389f89c8b
commit
a4d746cd80
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue