Skip to content

Commit

Permalink
cleanup errors.json
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Feb 25, 2024
1 parent 3a48cb1 commit 126f9b0
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions packages/primate/src/errors.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"module": "primate",
"errors": {
"MismatchedBody": {
"message": "{0}: {1}",
"fix": "make sure the body payload corresponds to the used content type",
"level": "Error"
},
"DoubleFileExtension": {
"message": "double file extension {0}",
"fix": "unload one of the two handlers registering the file extension",
Expand All @@ -16,14 +11,29 @@
"fix": "load {0} only once",
"level": "Error"
},
"DoublePathParameter": {
"message": "double path parameter {0} in route {1}",
"fix": "disambiguate path parameters in route names",
"level": "Error"
},
"DoubleRoute": {
"message": "double route of the form {0}",
"fix": "disambiguate routes",
"level": "Error"
},
"EmptyConfigFile": {
"message": "empty config file at {0}",
"fix": "add configuration options to the file or remove it",
"level": "Warn"
},
"EmptyPathParameter": {
"message": "empty path parameter {0} in route {1}",
"fix": "name the parameter or remove it",
"level": "Error"
},
"EmptyRouteFile": {
"message": "empty route file at {0}",
"fix": "add routes or remove file",
"fix": "add routes to the file or remove it",
"level": "Warn"
},
"EmptyDirectory": {
Expand All @@ -48,17 +58,7 @@
},
"InvalidPath": {
"message": "invalid path {0}",
"fix": "use only letters, digits, '[', ']' and '=' in paths",
"level": "Error"
},
"EmptyPathParameter": {
"message": "empty path parameter {0} in route {1}",
"fix": "add name or remove parameter",
"level": "Error"
},
"DoublePathParameter": {
"message": "double path parameter {0} in route {1}",
"fix": "disambiguate path parameters in route names",
"fix": "use only letters, digits, '_', '[', ']' or '=' in path filenames",
"level": "Error"
},
"InvalidTypeExport": {
Expand All @@ -71,6 +71,11 @@
"fix": "use lowercase-first latin letters and decimals in type names",
"level": "Error"
},
"MismatchedBody": {
"message": "{0}: {1}",
"fix": "make sure the body payload corresponds to the used content type",
"level": "Error"
},
"MismatchedPath": {
"message": "mismatched path {0}: {1}",
"fix": "fix the type or the caller",
Expand All @@ -96,11 +101,6 @@
"fix": "change {0} to an array in the config or remove this property",
"level": "Error"
},
"EmptyConfigFile": {
"message": "empty config file at {0}",
"fix": "add configuration options or remove file",
"level": "Warn"
},
"NoHandlerForComponent": {
"message": "no handler for {0}",
"fix": "add handler module for this component or remove {0}",
Expand Down

0 comments on commit 126f9b0

Please sign in to comment.