From bebd21a20e0585079c613f22a38f34489673e3b2 Mon Sep 17 00:00:00 2001 From: Chris Dibbern Date: Fri, 29 Nov 2019 11:19:09 -0600 Subject: [PATCH] Clarify error message for null arg. --- PostProcessing/Runtime/Utils/PropertySheetFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostProcessing/Runtime/Utils/PropertySheetFactory.cs b/PostProcessing/Runtime/Utils/PropertySheetFactory.cs index b707009c..6557ed51 100644 --- a/PostProcessing/Runtime/Utils/PropertySheetFactory.cs +++ b/PostProcessing/Runtime/Utils/PropertySheetFactory.cs @@ -54,7 +54,7 @@ public PropertySheet Get(Shader shader) PropertySheet sheet; if (shader == null) - throw new ArgumentException(string.Format("Invalid shader ({0})", shader)); + throw new ArgumentException("Shader cannot be null."); if (m_Sheets.TryGetValue(shader, out sheet)) return sheet;