ux: Improve endpoint validation by checking type on start

This commit is contained in:
TwiN
2022-09-01 20:59:09 -04:00
parent 5c6bf84106
commit 52d7cb6f04
2 changed files with 11 additions and 3 deletions

View File

@ -1125,7 +1125,7 @@ endpoints:
conditions:
- "[STATUS] == 200"
`))
if err != core.ErrEndpointWithNoName {
if err == nil {
t.Error("should've returned an error")
}
}