Skip to content

Commit bc7c121

Browse files
committed
feat: Add clearer error messages to block/unblock responses
1 parent ce82cd3 commit bc7c121

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

proto/decentraland/social_service/v2/social_service_v2.proto

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@ package decentraland.social_service.v2;
44
import "google/protobuf/empty.proto";
55

66
// Errors
7-
message InvalidFriendshipAction {}
8-
message InternalServerError {}
9-
7+
message InvalidFriendshipAction {
8+
optional string message = 1;
9+
}
10+
message InternalServerError {
11+
optional string message = 1;
12+
}
13+
message InvalidRequest {
14+
optional string message = 1;
15+
}
16+
message ProfileNotFound {
17+
optional string message = 1;
18+
}
1019
// Types
1120
message User { string address = 1; }
1221

@@ -176,6 +185,8 @@ message BlockUserResponse {
176185
oneof response {
177186
Ok ok = 1;
178187
InternalServerError internal_server_error = 2;
188+
InvalidRequest invalid_request = 3;
189+
ProfileNotFound profile_not_found = 4;
179190
}
180191
}
181192

@@ -191,6 +202,8 @@ message UnblockUserResponse {
191202
oneof response {
192203
Ok ok = 1;
193204
InternalServerError internal_server_error = 2;
205+
InvalidRequest invalid_request = 3;
206+
ProfileNotFound profile_not_found = 4;
194207
}
195208
}
196209

0 commit comments

Comments
 (0)