mirror of https://github.com/zer0bin-dev/zer0bin
Merge branch 'Domterion:main' into main
This commit is contained in:
commit
46ae11b4fe
|
@ -63,6 +63,8 @@ async fn get_paste(state: web::Data<AppState>, id: web::Path<String>) -> impl Re
|
|||
});
|
||||
}
|
||||
_ => {
|
||||
eprintln!("Error occurred while getting paste: {:?}", e);
|
||||
|
||||
return HttpResponse::InternalServerError().json(ApiResponse {
|
||||
success: false,
|
||||
data: ApiError {
|
||||
|
@ -116,7 +118,8 @@ async fn new_paste(state: web::Data<AppState>, data: web::Json<PartialPaste>) ->
|
|||
});
|
||||
}
|
||||
Err(e) => {
|
||||
println!("{}", e);
|
||||
eprintln!("Error occurred while creating paste: {:?}", e);
|
||||
|
||||
return HttpResponse::InternalServerError().json(ApiResponse {
|
||||
success: false,
|
||||
data: ApiError {
|
||||
|
|
Loading…
Reference in New Issue