diff options
author | Dan Moseley <danmose@microsoft.com> | 2019-10-27 08:47:15 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-10-30 01:34:11 +0300 |
commit | 9aeef958c6ba565b13c3ee3eeac39276fb9cdb2a (patch) | |
tree | 27e63001a50243ff687960c7fe643ed0a5fb019d /netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs | |
parent | db02ebc88bc67f360019e854248333c7d4191bb0 (diff) |
Add path to not-absolute-path exception (dotnet/coreclr#27470)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs')
-rw-r--r-- | netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs b/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs index c9d0c16b7ef..39b533516f3 100644 --- a/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs +++ b/netcore/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs @@ -299,7 +299,7 @@ namespace System.Runtime.Loader if (PathInternal.IsPartiallyQualified(assemblyPath)) { - throw new ArgumentException(SR.Argument_AbsolutePathRequired, nameof(assemblyPath)); + throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, assemblyPath), nameof(assemblyPath)); } lock (_unloadLock) @@ -319,12 +319,12 @@ namespace System.Runtime.Loader if (PathInternal.IsPartiallyQualified(nativeImagePath)) { - throw new ArgumentException(SR.Argument_AbsolutePathRequired, nameof(nativeImagePath)); + throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, nativeImagePath), nameof(nativeImagePath)); } if (assemblyPath != null && PathInternal.IsPartiallyQualified(assemblyPath)) { - throw new ArgumentException(SR.Argument_AbsolutePathRequired, nameof(assemblyPath)); + throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, assemblyPath), nameof(assemblyPath)); } lock (_unloadLock) @@ -394,7 +394,7 @@ namespace System.Runtime.Loader if (PathInternal.IsPartiallyQualified(unmanagedDllPath)) { - throw new ArgumentException(SR.Argument_AbsolutePathRequired, nameof(unmanagedDllPath)); + throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, unmanagedDllPath), nameof(unmanagedDllPath)); } return NativeLibrary.Load(unmanagedDllPath); |