ti2 1.0.54 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -237,12 +237,11 @@ module.exports = async ({
237
237
  if (process.env.CONSOLE_ERRORS || process.env.JEST_WORKER_ID) {
238
238
  console.error(R.path(['response', 'data'], err), err);
239
239
  }
240
- console.log('hit hre');
241
240
  return res.status((() => {
242
241
  if (!isNumber(err.status)) return 500;
243
242
  return Number(err.status);
244
243
  })()).send({
245
- message: R.path(['response', 'data', 'errorMessage'], err) || err.message || 'Internal Error',
244
+ message: typeof err === 'string' ? err : (R.path(['response', 'data', 'errorMessage'], err) || err.message || 'Internal Error'),
246
245
  });
247
246
  });
248
247
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "Tourist Industry Exchange (TI2)",
5
5
  "main": "index.js",
6
6
  "scripts": {