summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/ListView.js2
-rw-r--r--src/components/ScanView.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ListView.js b/src/components/ListView.js
index 0046ef8..3c718b0 100644
--- a/src/components/ListView.js
+++ b/src/components/ListView.js
@@ -80,7 +80,7 @@ class ListView extends React.Component {
}))
});
})
- .catch(e => this.props.setError(e));
+ .catch(e => this.props.setError(e.toString()));
}
//
diff --git a/src/components/ScanView.js b/src/components/ScanView.js
index 58e3269..012a58f 100644
--- a/src/components/ScanView.js
+++ b/src/components/ScanView.js
@@ -36,7 +36,7 @@ function ScanView(props) {
setData(json.docs);
setTimestamp(new Date(json.docs.timestamp));
})
- .catch(e => props.setError(e));
+ .catch(e => props.setError(e.toString()));
}
// TODO: Trigger a real re-scan