summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift/ResponseSink.h')
-rw-r--r--Sluift/ResponseSink.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Sluift/ResponseSink.h b/Sluift/ResponseSink.h
index 042d6e0..700363a 100644
--- a/Sluift/ResponseSink.h
+++ b/Sluift/ResponseSink.h
@@ -35,6 +35,11 @@ namespace Swift {
this->responseReceived = true;
}
+ void operator()(ErrorPayload::ref error) {
+ this->error = error;
+ this->responseReceived = true;
+ }
+
private:
bool responseReceived;
boost::shared_ptr<T> payload;