tsondb 0.20.3 → 0.20.4

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.
@@ -9,7 +9,6 @@ export const EntityDecl = (sourceUrl, options) => {
9
9
  return {
10
10
  ...options,
11
11
  instanceDisplayNameCustomizer: options.instanceDisplayNameCustomizer, // ignore contravariance of registered entity type
12
- customConstraints: options.customConstraints, // ignore contravariance of registered entity type
13
12
  kind: NodeKind.EntityDecl,
14
13
  sourceUrl,
15
14
  parameters: [],
@@ -43,7 +43,7 @@ export const sendErrorResponse = (res, error) => {
43
43
  res.status(error.code).send(error.message);
44
44
  }
45
45
  else if (error instanceof Error) {
46
- res.status(500).send(error.message);
46
+ res.status(500).send(getErrorMessageForDisplay(error));
47
47
  }
48
48
  else {
49
49
  res.status(500).send(String(error));