From 702d38a6cceced064767e6470d2ba268664b015e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Fri, 22 Apr 2022 12:41:55 +0100 Subject: [PATCH] Use Not found for missing visualizations --- lib/builder_web.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder_web.ml b/lib/builder_web.ml index 306fa85..3440bbb 100644 --- a/lib/builder_web.ml +++ b/lib/builder_web.ml @@ -204,7 +204,7 @@ let routes ~datadir ~cachedir ~configdir = and build = Dream.param req "build" in get_uuid build >>= fun uuid -> try_load_cached_visualization ~cachedir ~uuid viz_typ - |> if_error "Error getting cached visualization" + |> if_error ~status:`Not_Found "Error getting cached visualization" >>= fun svg_html -> Lwt_result.ok (Dream.html svg_html) in