backend-error 1.0.2 → 1.0.3

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/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -53,8 +53,8 @@ try {
53
53
  if (!user) throw BackendError.NotFound("User not found");
54
54
  res.json(user);
55
55
  } catch (err) {
56
- const { status, body } = await httpErrorFormatter(err); //returns status and body
57
- res.status(status).json({ body });
56
+ const { status, body, message, showUser } = await httpErrorFormatter(err);
57
+ res.status(status).json(body);
58
58
  }
59
59
  ```
60
60
 
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "email": "hej@eriksturesson.se",
10
10
  "url": "https://eriksturesson.se"
11
11
  },
12
- "version": "1.0.2",
12
+ "version": "1.0.3",
13
13
  "description": "Error library supporting multiple cloud platforms with simple error handling.",
14
14
  "keywords": [
15
15
  "error",