propagate pageserver http error messages to zenith cli

This commit is contained in:
Dmitry Rodionov
2021-09-06 14:40:32 +03:00
committed by Dmitry
parent 3d17255400
commit 4fae115dc2
4 changed files with 73 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
use anyhow::anyhow;
use hyper::{header, Body, Response, StatusCode};
use serde::Serialize;
use serde::{Deserialize, Serialize};
use serde_json;
use thiserror::Error;
@@ -45,7 +45,7 @@ impl ApiError {
}
}
#[derive(Serialize)]
#[derive(Serialize, Deserialize)]
pub struct HttpErrorBody {
pub msg: String,
}