diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-11-10 17:28:45 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-11-10 17:28:45 -0800 |
commit | 128df8920ec5fa3109184ef1ec1ea2f389342332 (patch) | |
tree | 8a6d7482c2a42e1348154a7edfe2be8441312a94 /adenosine-pds/src/web.rs | |
parent | d5378562ff94d2bf6acf2659e1961a1ff35856ac (diff) | |
download | adenosine-128df8920ec5fa3109184ef1ec1ea2f389342332.tar.gz adenosine-128df8920ec5fa3109184ef1ec1ea2f389342332.zip |
pds: error page fixes
Diffstat (limited to 'adenosine-pds/src/web.rs')
-rw-r--r-- | adenosine-pds/src/web.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/adenosine-pds/src/web.rs b/adenosine-pds/src/web.rs index 5b9d6de..4432566 100644 --- a/adenosine-pds/src/web.rs +++ b/adenosine-pds/src/web.rs @@ -5,6 +5,14 @@ use askama::Template; use serde_json; #[derive(Template)] +#[template(path = "error.html")] +pub struct ErrorView { + pub domain: String, + pub status_code: u16, + pub error_message: String, +} + +#[derive(Template)] #[template(path = "home.html")] pub struct GenericHomeView { pub domain: String, |