Skip to content

Commit 605889f

Browse files
Merge pull request #41 from notion-dotnet/bfix/40-errorResponse-is-null-on-at-least-one-execution-path
Fix 'errorResponse' is null on at least one execution path. 🐛
2 parents e7c999c + 7cc4149 commit 605889f

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)