diff --git a/dapps/src/apps/fetcher.rs b/dapps/src/apps/fetcher.rs index 869a34df2..7d7db7b8b 100644 --- a/dapps/src/apps/fetcher.rs +++ b/dapps/src/apps/fetcher.rs @@ -101,9 +101,9 @@ impl AppFetcher { if self.sync.is_major_syncing() { return Box::new(ContentHandler::error( StatusCode::ServiceUnavailable, - "Sync in progress", + "Sync In Progress", "Your node is still syncing. We cannot resolve any content before it's fully synced.", - None + Some("Refresh") )); } diff --git a/dapps/src/handlers/fetch.rs b/dapps/src/handlers/fetch.rs index 7cbb2537b..ef37cfc61 100644 --- a/dapps/src/handlers/fetch.rs +++ b/dapps/src/handlers/fetch.rs @@ -133,7 +133,7 @@ impl server::Handler for ContentFetcherHandler< Err(e) => FetchState::Error(ContentHandler::error( StatusCode::BadGateway, "Unable To Start Dapp Download", - "Could not initialize download of the dapp. It might be a problem with remote server.", + "Could not initialize download of the dapp. It might be a problem with the remote server.", Some(&format!("{}", e)), )), } diff --git a/dapps/src/router/auth.rs b/dapps/src/router/auth.rs index 596796eed..ff05420bc 100644 --- a/dapps/src/router/auth.rs +++ b/dapps/src/router/auth.rs @@ -57,7 +57,9 @@ impl Authorization for HttpBasicAuth { Access::Denied => { Authorized::No(Box::new(ContentHandler::error( status::StatusCode::Unauthorized, - "Unauthorized", "You need to provide valid credentials to access this page.", None + "Unauthorized", + "You need to provide valid credentials to access this page.", + None ))) }, Access::AuthRequired => { diff --git a/dapps/src/router/host_validation.rs b/dapps/src/router/host_validation.rs index d1d651c5d..5be30ef8b 100644 --- a/dapps/src/router/host_validation.rs +++ b/dapps/src/router/host_validation.rs @@ -39,7 +39,7 @@ pub fn is_valid(request: &server::Request, allowed_hosts: &[String], pub fn host_invalid_response() -> Box + Send> { Box::new(ContentHandler::error(StatusCode::Forbidden, - "Current host is disallowed", + "Current Host Is Disallowed", "You are trying to access your node using incorrect address.", Some("Use allowed URL or specify different hosts CLI options.") ))