Skip to content

Commit

Permalink
picoev: fix wrong return on listen failure (#22463)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp authored Oct 9, 2024
1 parent 7e17b9a commit 98f66d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/picoev/picoev.v
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ fn default_error_callback(data voidptr, req picohttpparser.Request, mut res pico
pub fn new(config Config) !&Picoev {
listening_socket_fd := listen(config) or {
eprintln('Error during listen: ${err}')
return unsafe { nil }
return err
}

mut pv := &Picoev{
Expand Down

0 comments on commit 98f66d8

Please sign in to comment.