From ad238a878fef0b5c5928a78d903d1b5d2e0db203 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 11 Dec 2016 15:35:19 +0100 Subject: [PATCH] fix the exception message --- Yavsc/ViewModels/UserFiles/UserDirectoryInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yavsc/ViewModels/UserFiles/UserDirectoryInfo.cs b/Yavsc/ViewModels/UserFiles/UserDirectoryInfo.cs index 0c7dbafb..ff1237c3 100644 --- a/Yavsc/ViewModels/UserFiles/UserDirectoryInfo.cs +++ b/Yavsc/ViewModels/UserFiles/UserDirectoryInfo.cs @@ -22,7 +22,7 @@ namespace Yavsc.ViewModels.UserFiles var finalPath = (path==null) ? username : username + Path.DirectorySeparatorChar + path; if ( !finalPath.IsValidPath() ) throw new InvalidOperationException( - $"File name contains invalid chars, using path {SubPath}"); + $"File name contains invalid chars, using path {finalPath}"); dInfo = new DirectoryInfo( Path.Combine(Startup.UserFilesDirName,finalPath));