Merge branch 'Domterion:main' into main

This commit is contained in:
Kainoa Kanter 2022-02-28 14:47:32 -08:00 committed by GitHub
commit 46ae11b4fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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 {