Use Not found for missing visualizations
This commit is contained in:
parent
3de78b1113
commit
702d38a6cc
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ let routes ~datadir ~cachedir ~configdir =
|
||||||
and build = Dream.param req "build" in
|
and build = Dream.param req "build" in
|
||||||
get_uuid build >>= fun uuid ->
|
get_uuid build >>= fun uuid ->
|
||||||
try_load_cached_visualization ~cachedir ~uuid viz_typ
|
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 ->
|
>>= fun svg_html ->
|
||||||
Lwt_result.ok (Dream.html svg_html)
|
Lwt_result.ok (Dream.html svg_html)
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue