Skip to content

Commit 8bb0f44

Browse files
removed newline from import to try and fix bug
1 parent fb5e552 commit 8bb0f44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PDFTronGo/pdftron.i

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,12 @@
221221
// All functions now return an error in addition to their return type instead of panicking on exceptions.
222222

223223
// Ensure necessary imports for error handling code
224-
%insert(go_imports) %{
225-
import "errors"
224+
%insert(go_imports)
225+
%{import "errors"
226226
import "fmt"
227227
%}
228228

229+
// Handle exceptions by triggering recoverable panic containing the exception message
229230
%include "exception.i"
230231
%exception {
231232
try {

0 commit comments

Comments
 (0)