From 193ab13777b9dab47f313bd6d91602d4e65e401e Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Fri, 10 Sep 2021 20:53:14 +0300 Subject: [PATCH] FileInformation.GetFileInformation: Improved exception message --- .../NTFileStore/Structures/FileInformation/FileInformation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SMBLibrary/NTFileStore/Structures/FileInformation/FileInformation.cs b/SMBLibrary/NTFileStore/Structures/FileInformation/FileInformation.cs index b841527..b0b3843 100644 --- a/SMBLibrary/NTFileStore/Structures/FileInformation/FileInformation.cs +++ b/SMBLibrary/NTFileStore/Structures/FileInformation/FileInformation.cs @@ -1,4 +1,4 @@ -/* Copyright (C) 2017 Tal Aloni . All rights reserved. +/* Copyright (C) 2017-2021 Tal Aloni . All rights reserved. * * You can redistribute this program and/or modify it under the terms of * the GNU Lesser Public License as published by the Free Software Foundation, @@ -88,7 +88,7 @@ namespace SMBLibrary case FileInformationClass.FileShortNameInformation: throw new NotImplementedException(); default: - throw new UnsupportedInformationLevelException(); + throw new UnsupportedInformationLevelException(String.Format("Unsupported information class: {0}", informationClass)); } } }