diff --git a/lib/api.dart b/lib/api.dart index fc96b2a..c900c99 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -184,6 +184,7 @@ class ApiClient { pdfFileData!, ); // TODO: proper error handling log.info("PDF cached at: $cachedPdfPath"); + return cachedFile; } catch (e) { log.warning("Error fetching PDF", e); }