serde: Use error propagation