nitro-web 0.0.171 → 0.0.172

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/package.json +1 -1
  2. package/util.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-web",
3
- "version": "0.0.171",
3
+ "version": "0.0.172",
4
4
  "repository": "github:boycce/nitro-web",
5
5
  "homepage": "https://boycce.github.io/nitro-web/",
6
6
  "description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",
package/util.js CHANGED
@@ -946,7 +946,7 @@ export function getResponseErrors (errs) {
946
946
  */
947
947
  export function getSystemError(nitroErrors) {
948
948
  const allErrors = getResponseErrors(nitroErrors || [])
949
- const systemError = allErrors.find(error => error.title === 'error')
949
+ const systemError = allErrors.find(error => error.title === 'error' || !error.title)
950
950
  return systemError?.detail || ''
951
951
  }
952
952