diff --git a/compiler-native-lib/src/main/scala/aqua/compiler/Library.scala b/compiler-native-lib/src/main/scala/aqua/compiler/Library.scala index 6a808690..c60c13b8 100644 --- a/compiler-native-lib/src/main/scala/aqua/compiler/Library.scala +++ b/compiler-native-lib/src/main/scala/aqua/compiler/Library.scala @@ -38,7 +38,7 @@ object Library { ) .unsafeRunSync() - result.fold( + result.value.value.fold( errors => errors.toChain.toList.zipWithIndex.foreach { case (error, i) => errorsPointer.write(i, CTypeConversion.toCString(error).get())