summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/response
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2017-11-25 12:11:09 -0500
committerFerris Tseng <ferristseng@fastmail.fm>2017-11-25 12:11:09 -0500
commitbe4d9527b0ee4830d5434e6e70415d2f18af0180 (patch)
treebfcdd03b4df19c5148cdc35dd26f345e8e5f6bb3 /ipfs-api/src/response
parentb2ba32dcd849732d62eaed5940f5db5367e42fe1 (diff)
handle streaming errors
Diffstat (limited to 'ipfs-api/src/response')
-rw-r--r--ipfs-api/src/response/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipfs-api/src/response/error.rs b/ipfs-api/src/response/error.rs
index f0bac60..5f67eec 100644
--- a/ipfs-api/src/response/error.rs
+++ b/ipfs-api/src/response/error.rs
@@ -40,9 +40,9 @@ error_chain! {
/// A stream error indicated in the Trailer header.
///
- StreamError {
+ StreamError(err: String) {
description("api returned a stream error"),
- display("api returned a stream error")
+ display("api returned an error while streaming: '{}'", err)
}
Uncategorized(err: String) {