Skip to content

bug report:"App crashes on invalid username input instead of throwing an error #534

Open
@chainray01

Description

@chainray01

Describe the issue

When entering an invalid username, the application crashes with the following error: Fatal error: Range requires lowerBound <= upperBound.

Vapor version

2.13.5

Operating system and version

macos 13.7.6

Swift version

Swift Package Manager - Swift 5.9.0

Steps to reproduce

1.Enter an invalid username
2. run code
do { _ = try await pool.withConnection { conn in conn.simpleQuery("SELECT 1") }.get() } catch { throw error }

Outcome

App crashes
Swift/arm64e-apple-macos.swiftinterface:5830: Fatal error: Range requires lowerBound <= upperBound

Image

Additional notes

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions