Merge pull request #761 from jb-alvarado/master

simplify error mapping, fix css for mobile, update packages
This commit is contained in:
jb-alvarado 2024-09-24 10:40:27 +02:00 committed by GitHub
commit a076449d21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -96,10 +96,11 @@ async fn main() -> std::io::Result<()> {
let addr = ip_port[0];
let port = ip_port
.get(1)
.ok_or("<ADRESSE>:<PORT> needed!")
.map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_string()))?
.parse::<u16>()
.unwrap();
.and_then(|p| p.parse::<u16>().ok())
.ok_or(io::Error::new(
io::ErrorKind::InvalidInput,
"<ADRESSE>:<PORT> needed! For example: 127.0.0.1:8787",
))?;
let controllers = web::Data::from(channel_controllers.clone());
let auth_state = web::Data::new(SseAuthState {
uuids: tokio::sync::Mutex::new(HashSet::new()),

@ -1 +1 @@
Subproject commit e4baf19000eade5376b1a3688e830c4340afbe9d
Subproject commit c897226188cc289b0744bb721691a438dba0f5fd