Skip to content

Commit ab1f757

Browse files
Fix 'errorResponse' is null on at least one execution path.
1 parent 50b74c4 commit ab1f757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Notion.Client/RestClient/RestClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private static async Task<Exception> BuildException(HttpResponseMessage response
6969
}
7070
}
7171

72-
return new NotionApiException(response.StatusCode, errorResponse?.ErrorCode, errorResponse.Message);
72+
return new NotionApiException(response.StatusCode, errorResponse?.ErrorCode, errorResponse?.Message);
7373
}
7474

7575
private async Task<HttpResponseMessage> SendAsync(

0 commit comments

Comments
 (0)