mirror of
https://github.com/DefectingCat/candy
synced 2025-07-15 16:51:34 +00:00
fix: default internal error text
This commit is contained in:
@ -5,7 +5,7 @@ use axum::{
|
|||||||
http::StatusCode,
|
http::StatusCode,
|
||||||
response::{IntoResponse, Response},
|
response::{IntoResponse, Response},
|
||||||
};
|
};
|
||||||
use const_format::{concatcp, formatcp};
|
use const_format::formatcp;
|
||||||
use serde_repr::*;
|
use serde_repr::*;
|
||||||
use tracing::error;
|
use tracing::error;
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ pub enum ErrorCode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Normal error message
|
/// Normal error message
|
||||||
const SERVER_ERROR_STR: &str = concatcp!(
|
const SERVER_ERROR_STR: &str = formatcp!(
|
||||||
r#"Internal Server Error
|
r#"Internal Server Error
|
||||||
{NAME} v{VERSION}
|
{NAME} v{VERSION}
|
||||||
Powered by RUA
|
Powered by RUA
|
||||||
|
Reference in New Issue
Block a user