input/tidal: parse and report userMessage from error responses

This commit is contained in:
Max Kellermann
2018-01-21 12:17:18 +01:00
parent 12a2285ba5
commit 570c6765b0
7 changed files with 214 additions and 4 deletions

View File

@@ -27,9 +27,11 @@
#include "lib/yajl/Handle.hxx"
#include <exception>
#include <memory>
#include <string>
class CurlRequest;
class TidalErrorParser;
/**
* Callback class for #TidalTrackRequest.
@@ -54,6 +56,8 @@ class TidalTrackRequest final : CurlResponseHandler {
CurlRequest request;
std::unique_ptr<TidalErrorParser> error_parser;
Yajl::Handle parser;
enum class State {