Skip to content

Commit

Permalink
Fix API error
Browse files Browse the repository at this point in the history
  • Loading branch information
HindujaB committed Jan 22, 2025
1 parent a8b5efc commit 74dc8ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import io.ballerina.runtime.api.values.BMap;
import io.ballerina.runtime.api.values.BString;
import io.ballerina.runtime.api.values.BTypedesc;
import io.ballerina.runtime.internal.JsonGenerator;
import io.ballerina.runtime.internal.json.JsonGenerator;
import io.ballerina.runtime.internal.values.ErrorValue;

import java.io.ByteArrayInputStream;
Expand Down Expand Up @@ -112,7 +112,7 @@ public static Object testJsonSerializeExtern(Object jsonObject) {
gen.flush();
out.close();
} catch (IOException e) {
throw new ErrorValue(StringUtils.fromString(e.getMessage()), e);
throw new ErrorValue(StringUtils.fromString(e.getMessage()));
}
return StringUtils.fromString(out.toString());
}
Expand Down

0 comments on commit 74dc8ab

Please sign in to comment.