From aee11a70dbaa00620944b80506c3d34dc283216f Mon Sep 17 00:00:00 2001 From: Chris Santero Date: Fri, 23 Feb 2018 16:48:40 -0500 Subject: [PATCH] give JsonApiException more descriptive message --- JSONAPI/Documents/Builders/JsonApiException.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JSONAPI/Documents/Builders/JsonApiException.cs b/JSONAPI/Documents/Builders/JsonApiException.cs index 4b72176c..ee6d04f9 100644 --- a/JSONAPI/Documents/Builders/JsonApiException.cs +++ b/JSONAPI/Documents/Builders/JsonApiException.cs @@ -19,7 +19,7 @@ public class JsonApiException : Exception /// Creates a new JsonApiException /// /// - public JsonApiException(IError error) + public JsonApiException(IError error) : base(error?.Detail ?? "An error occurred in JSONAPI") { Error = error; }