mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
rescue malformed PDF
This commit is contained in:
1 parent
5dc80601b2
commit
974bb85fb7
1 file changed
+2
@@ -34,6 +34,8 @@ module Api
|
||||
}
|
||||
end
|
||||
}
|
||||
rescue HexaPDF::MalformedPDFError
|
||||
render json: { error: 'Malformed PDF' }, status: :unprocessable_entity
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user