From 9fde618b4c23dcf021dd8550e96e16d1d76be1df Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Thu, 17 Dec 2020 23:39:28 +0200 Subject: [PATCH] Throws error on `getProperties()` when the user specified is invalid --- source/libdnet/client.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/libdnet/client.d b/source/libdnet/client.d index 45976f0..01bc751 100644 --- a/source/libdnet/client.d +++ b/source/libdnet/client.d @@ -235,6 +235,11 @@ public final class DClient properties = split(propertyLine, ","); } + /* If it didn't work (user specified invalid) */ + else + { + throw new DClientException("Invalid user for get property"); + } return properties; }