Skip to content

Commit fe23795

Browse files
committed
Minor fixes
1 parent 987334f commit fe23795

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/Libraries/SmartStore.Core/Infrastructure/Guard.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ public static void Arguments<T1, T2, T3, T4, T5>(Func<T1> arg1, Func<T2> arg2, F
110110
[DebuggerStepThrough]
111111
public static void ArgumentNotEmpty(Func<string> arg)
112112
{
113-
if (arg().IsEmpty())
114-
throw Error.ArgumentNullOrEmpty(arg);
113+
if (arg().IsEmpty())
114+
{
115+
string argName = GetParamName(arg);
116+
throw Error.Argument(argName, "String parameter '{0}' cannot be null or all whitespace.", argName);
117+
}
115118
}
116119

117120
[DebuggerStepThrough]

src/Presentation/SmartStore.Web.Framework/Pdf/Content/PdfViewContent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public PdfViewContent(string viewName, object model, ControllerContext controlle
1717
}
1818

1919
public PdfViewContent(string viewName, string masterName, object model, ControllerContext controllerContext)
20-
: base(ViewToString(viewName, masterName, model, false, controllerContext, false))
20+
: base(ViewToString(viewName, masterName, model, false, controllerContext, true))
2121
{
2222
}
2323

0 commit comments

Comments
 (0)