fix: error on book fetches
This commit is contained in:
@@ -32,7 +32,7 @@ async function getSeriesBooks(seriesId: string, page: number = 1, unreadOnly: bo
|
||||
|
||||
return { data: books, series };
|
||||
} catch (error) {
|
||||
throw error instanceof Error ? error : new Error("Erreur lors de la récupération des tomes");
|
||||
throw error instanceof AppError ? error : new AppError(ERROR_CODES.BOOK.PAGES_FETCH_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -260,6 +260,7 @@
|
||||
"SERIES_FETCH_ERROR": "Error fetching series",
|
||||
"HOME_FETCH_ERROR": "Error fetching home",
|
||||
"SERIES_NO_BOOKS_FOUND": "No books found in the series",
|
||||
"BOOK_PAGES_FETCH_ERROR": "Error fetching book pages",
|
||||
|
||||
"GENERIC_ERROR": "An error occurred"
|
||||
}
|
||||
|
||||
@@ -260,6 +260,7 @@
|
||||
"SERIES_FETCH_ERROR": "Erreur lors de la récupération des séries",
|
||||
"HOME_FETCH_ERROR": "Erreur lors de la récupération de l'accueil",
|
||||
"SERIES_NO_BOOKS_FOUND": "Aucun livre trouvé dans la série",
|
||||
"BOOK_PAGES_FETCH_ERROR": "Erreur lors de la récupération des pages du livre",
|
||||
|
||||
"GENERIC_ERROR": "Une erreur est survenue"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user