FileInformation.GetFileInformation: Improved exception message

This commit is contained in:
Tal Aloni 2021-09-10 20:53:14 +03:00
parent b7f93b06b0
commit 193ab13777

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
/* Copyright (C) 2017-2021 Tal Aloni <tal.aloni.il@gmail.com>. 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));
}
}
}