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/lib.rs | |
parent | d5378562ff94d2bf6acf2659e1961a1ff35856ac (diff) | |
download | adenosine-128df8920ec5fa3109184ef1ec1ea2f389342332.tar.gz adenosine-128df8920ec5fa3109184ef1ec1ea2f389342332.zip |
pds: error page fixes
Diffstat (limited to 'adenosine-pds/src/lib.rs')
-rw-r--r-- | adenosine-pds/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs index 2414b79..c70cb88 100644 --- a/adenosine-pds/src/lib.rs +++ b/adenosine-pds/src/lib.rs @@ -250,7 +250,7 @@ impl AtpService { (GET) ["/xrpc/{endpoint}", endpoint: String] => { xrpc_wrap(xrpc_get_handler(&srv, &endpoint, request)) }, - _ => Response::text("404: Not Found") + _ => web_wrap(Err(XrpcError::NotFound("unknown URL pattern".to_string()).into())), ) }) }); |