Skip to content

Commit 2e4b026

Browse files
nbradburyclaude
andcommitted
RS Post Settings: Use consistent error message in fetchPost
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4706de9 commit 2e4b026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/src/main/java/org/wordpress/android/ui/postsrs/PostRsSettingsViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ class PostRsSettingsViewModel @Inject constructor(
825825
private suspend fun fetchPost():
826826
AnyPostWithEditContext = withContext(Dispatchers.IO) {
827827
val client = apiClient
828-
?: throw PostApiRequestException("No API client")
828+
?: throw PostApiRequestException("No site selected")
829829
val response = client.request {
830830
it.posts().retrieveWithEditContext(
831831
PostEndpointType.Posts,

0 commit comments

Comments
 (0)