Silented warning/error
This commit is contained in:
@@ -67,7 +67,7 @@ namespace API::Subsonic
|
||||
std::vector<T> params {getMultiParametersAs<T>(parameterMap, param)};
|
||||
|
||||
if (params.size() != 1)
|
||||
return {};
|
||||
return std::nullopt;
|
||||
|
||||
return T { std::move(params.front()) };
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ readParameterAs(const Wt::Http::Request& request, const std::string& parameterNa
|
||||
auto paramStr {request.getParameter(parameterName)};
|
||||
if (!paramStr)
|
||||
{
|
||||
LOG(ERROR) << "Missing parameter '" << parameterName << "'";
|
||||
LOG(DEBUG) << "Missing parameter '" << parameterName << "'";
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user