'use strict';

const error = require('http-errors');

exports.translateDbError = (err) => {
  return Promise.reject(
    error.InternalServerError('database '+err.message)
  );
}

'use strict';

const error = require('http-errors');

exports.translateDbError = (err) => {
  return Promise.reject(
    error.InternalServerError('Store error: \''+err.message+'\'')
  );
}

Change wording in store error message
Change wording in store error message
