Skip to content

Commit 37f1469

Browse files
committed
feat: rename Error message to ServiceError and update related fields in response messages
1 parent 6197159 commit 37f1469

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

proto/sagittarius/sagittarius.module.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ message ModuleUpdateRequest {
1717
message ModuleUpdateResponse {
1818
// True if was successful, false if not
1919
bool success = 1;
20-
optional shared.Error error = 2;
20+
optional shared.ServiceError error = 2;
2121
}
2222

2323
//This service will be implemented as a server by Sagittarius and as a client by Aquila.

proto/sagittarius/sagittarius.runtime_status.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ message RuntimeStatusUpdateRequest {
1717

1818
message RuntimeStatusUpdateResponse {
1919
bool success = 1;
20-
optional shared.Error error = 2;
20+
optional shared.ServiceError error = 2;
2121
}
2222

2323
service RuntimeStatusService {

proto/sagittarius/sagittarius.runtime_usage.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ message RuntimeUsageRequest {
1313

1414
message RuntimeUsageResponse {
1515
bool success = 1;
16-
optional shared.Error error = 2;
16+
optional shared.ServiceError error = 2;
1717
}
1818

1919
service RuntimeUsageService {

proto/shared/shared.errors.proto

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ package shared;
44

55
option ruby_package = "Tucana::Shared";
66

7-
message Error {
7+
message ServiceError {
88
string message = 1;
9-
repeated ErrorDetails details = 2;
9+
repeated ServiceErrorDetails details = 2;
1010
}
1111

12-
message ErrorDetails {
12+
message ServiceErrorDetails {
1313
oneof kind {
14-
ActiveModelError active_model_error = 1;
14+
ServiceActiveModelError active_model_error = 1;
1515
}
1616
}
1717

18-
message ActiveModelError {
18+
message ServiceActiveModelError {
1919
string attribute = 1;
2020
string type = 2;
2121
}

0 commit comments

Comments
 (0)