diff --git a/client/js/models/post.js b/client/js/models/post.js index ded6b517..7125917c 100644 --- a/client/js/models/post.js +++ b/client/js/models/post.js @@ -140,6 +140,10 @@ class Post extends events.EventTarget { } return Promise.resolve(); }, response => { + if (response.name === 'PostAlreadyUploadedError') { + return Promise.reject( + `Post already uploaded (@${response.otherPostId})`); + } return Promise.reject(response.description); }); }