Mercurial > templog
comparison rust/src/params.rs @ 629:3e5e52d50af5 rust
comment
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 19 Apr 2019 13:58:30 +0800 |
parents | d5075136442f |
children | c57821a60e51 |
comparison
equal
deleted
inserted
replaced
628:e1b5938de122 | 629:3e5e52d50af5 |
---|---|
121 } | 121 } |
122 } | 122 } |
123 Err(TemplogError::new(&format!("Bad epoch from server '{}' expected '{}'", *le, self.epoch))) | 123 Err(TemplogError::new(&format!("Bad epoch from server '{}' expected '{}'", *le, self.epoch))) |
124 } | 124 } |
125 hyper::StatusCode::NotModified => { | 125 hyper::StatusCode::NotModified => { |
126 // XXX this isn't really an error | 126 // XXX this isn't really an error. Should handle_response() return |
127 // Result<Option<Params>, TemplogError> instead? | |
128 | |
127 Err(TemplogError::new("304 unmodified (long polling timeout at the server)")) | 129 Err(TemplogError::new("304 unmodified (long polling timeout at the server)")) |
128 }, | 130 }, |
129 _ => { | 131 _ => { |
130 Err(TemplogError::new(&format!("Wrong server response code {}: {}", status.as_u16(), text))) | 132 Err(TemplogError::new(&format!("Wrong server response code {}: {}", status.as_u16(), text))) |
131 }, | 133 }, |