Subsonic API: report code as int and not string

This commit is contained in:
emeric
2023-04-14 21:49:38 +02:00
parent 05e746ab3b
commit 3363479b64
+1 -1
View File
@@ -133,7 +133,7 @@ Response::createFailedResponse(ProtocolVersion protocolVersion, const Error& err
responseNode.setAttribute("type", "lms"); // non standard field to ease client hacks
Node& errorNode {responseNode.createChild("error")};
errorNode.setAttribute("code", std::to_string(static_cast<int>(error.getCode())));
errorNode.setAttribute("code", static_cast<int>(error.getCode()));
errorNode.setAttribute("message", error.getMessage());
return response;