Compare commits
2 Commits
2d77358d50
...
93c458d856
| Author | SHA1 | Date |
|---|---|---|
|
|
93c458d856 | |
|
|
cd4b35f3c9 |
|
|
@ -41,7 +41,8 @@ public class CreateBitDepthHandler implements ActionHandler {
|
||||||
.setPayload(ByteString.copyFromUtf8("Validation error: " + e.getMessage()));
|
.setPayload(ByteString.copyFromUtf8("Validation error: " + e.getMessage()));
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("Error creating artist", e);
|
logger.error("Error creating bit-depth", e);
|
||||||
|
return TransportProtocol.Response.newBuilder()
|
||||||
return TransportProtocol.Response.newBuilder()
|
return TransportProtocol.Response.newBuilder()
|
||||||
.setStatusCode(500)
|
.setStatusCode(500)
|
||||||
.setPayload(ByteString.copyFromUtf8("Error: " + e.getMessage()));
|
.setPayload(ByteString.copyFromUtf8("Error: " + e.getMessage()));
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ public class UpdateBitDepthHandler implements ActionHandler {
|
||||||
logger.warn("BitDepth not found with ID: {}", id);
|
logger.warn("BitDepth not found with ID: {}", id);
|
||||||
return TransportProtocol.Response.newBuilder()
|
return TransportProtocol.Response.newBuilder()
|
||||||
.setStatusCode(404)
|
.setStatusCode(404)
|
||||||
.setPayload(ByteString.copyFromUtf8("Artist not found"));
|
.setPayload(ByteString.copyFromUtf8("BitDepth not found"));
|
||||||
}
|
}
|
||||||
|
|
||||||
BitDepthMessages.BitDepth bitDepthProto = BitDepthMapper.toProtobuf(bitDepthOpt.get());
|
BitDepthMessages.BitDepth bitDepthProto = BitDepthMapper.toProtobuf(bitDepthOpt.get());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue