From 8d0dac205219fe84dbee0162f102e67c8b2e1616 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 6 Jan 2017 04:38:48 +0700 Subject: Make error and warning single string, add more specific error codes. --- data/vyconf.proto | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'data/vyconf.proto') diff --git a/data/vyconf.proto b/data/vyconf.proto index 5e77581..1849cd4 100644 --- a/data/vyconf.proto +++ b/data/vyconf.proto @@ -124,11 +124,17 @@ message Request { enum Status { SUCCESS = 0; FAIL = 1; + INVALID_PATH = 2; + INVALID_VALUE = 3; + COMMIT_IN_PROGRESS = 4; + CONFIGURATION_LOCKED = 5; + INTERNAL_ERROR = 6; + PERMISSION_DENIED = 7; } message Response { required Status status = 1; optional string output = 2; - repeated string errors = 3; - repeated string warnings = 4; + optional string error = 3; + optional string warning = 4; } -- cgit v1.2.3