Skip to content

Commit ccd20b2

Browse files
Adjusted go_imports to try and fix import error
1 parent fb5e552 commit ccd20b2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PDFTronGo/pdftron.i

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,13 @@
222222

223223
// Ensure necessary imports for error handling code
224224
%insert(go_imports) %{
225-
import "errors"
226-
import "fmt"
225+
import (
226+
"errors"
227+
"fmt"
228+
)
227229
%}
228230

231+
// Handle exceptions by triggering recoverable panic containing the exception message
229232
%include "exception.i"
230233
%exception {
231234
try {

0 commit comments

Comments
 (0)