Compare commits

...

2 Commits

Author SHA1 Message Date
Gustavo Henrique Miranda 93c458d856
Update src/main/java/com/mediamanager/service/delegate/handler/bitdepth/UpdateBitDepthHandler.java
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-12-05 04:54:40 -03:00
Gustavo Henrique Miranda cd4b35f3c9
Update src/main/java/com/mediamanager/service/delegate/handler/bitdepth/CreateBitDepthHandler.java
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-12-05 04:54:29 -03:00
2 changed files with 3 additions and 2 deletions

View File

@ -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()));

View File

@ -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());