diff --git a/app/labs/index/route.js b/app/labs/index/route.js index 16b7670ae2..02700e7fad 100644 --- a/app/labs/index/route.js +++ b/app/labs/index/route.js @@ -21,7 +21,7 @@ export default AbstractIndexRoute.extend({ let searchStatus = this.get('searchStatus'); return { options: { - startkey: [searchStatus, null, null, minId ], + startkey: [searchStatus, null, null, minId], endkey: [searchStatus, maxValue, maxValue, maxId] }, mapReduce: 'lab_by_status' diff --git a/app/mixins/pouch-adapter-utils.js b/app/mixins/pouch-adapter-utils.js index 1ffb703f4b..e231c72843 100644 --- a/app/mixins/pouch-adapter-utils.js +++ b/app/mixins/pouch-adapter-utils.js @@ -10,7 +10,7 @@ export default Ember.Mixin.create({ session.invalidate(); } } - let errmsg = [ err.status, + let errmsg = [err.status, (err.name || err.error) + ':', (err.message || err.reason) ].join(' ');