Skip to content

Commit

Permalink
adjust error page
Browse files Browse the repository at this point in the history
  • Loading branch information
PizieDust committed Jan 13, 2025
1 parent c77a747 commit e41b3db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions error_page.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ let error_layout (error : Utils.Status.t) =
[
i ~a:[ a_class [ "fa-solid fa-triangle-exclamation text-5xl" ] ] [];
div
~a:[ a_class [ "flex gap-2 justify-center" ] ]
~a:[ a_class [ "text-center" ] ]
[
p
~a:[ a_class [ "text-5xl text-secondary-500 font-semibold" ] ]
[ txt (string_of_int error.code ^ ":") ];
[ txt ("Error " ^ string_of_int error.code) ];
p
~a:[ a_class [ "uppercase font-bold text-5xl" ] ]
~a:[ a_class [ "uppercase font-bold text-xl" ] ]
[ txt error.title ];
];
p
Expand Down
3 changes: 2 additions & 1 deletion unikernel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,8 @@ struct
Middleware.redirect_to_error
~data:(`String ("Builder_web request: " ^ err))
~title:
(Vmm_core.Name.to_string unikernel_name ^ " update Error")
(Vmm_core.Name.to_string unikernel_name
^ " update Error")
~api_meth:false `Internal_server_error reqd ()
| Ok response_body -> (
match
Expand Down

0 comments on commit e41b3db

Please sign in to comment.