summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibPDF/Renderer.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Userland/Libraries/LibPDF/Renderer.cpp b/Userland/Libraries/LibPDF/Renderer.cpp
index 1cc8186e9b..6c8f434a42 100644
--- a/Userland/Libraries/LibPDF/Renderer.cpp
+++ b/Userland/Libraries/LibPDF/Renderer.cpp
@@ -13,11 +13,10 @@
#define RENDERER_HANDLER(name) \
PDFErrorOr<void> Renderer::handle_##name([[maybe_unused]] Vector<Value> const& args, [[maybe_unused]] Optional<NonnullRefPtr<DictObject>> extra_resources)
-#define RENDERER_TODO(name) \
- RENDERER_HANDLER(name) \
- { \
- dbgln("[PDF::Renderer] Unsupported draw operation " #name); \
- TODO(); \
+#define RENDERER_TODO(name) \
+ RENDERER_HANDLER(name) \
+ { \
+ return Error(Error::Type::RenderingUnsupported, "draw operation: " #name); \
}
namespace PDF {