@@ -506,7 +506,7 @@ module.on_event = function(event)
506
506
file :parent ():mkdir (Path .permission (" rwxr-xr-x" ), true )
507
507
end
508
508
file = file :tostring ()
509
- vim .loop .fs_open (file , " w" , 438 , function (err , fd )
509
+ vim .uv .fs_open (file , " w" , 438 , function (err , fd )
510
510
assert (not err and fd , lib .lazy_string_concat (" Failed to open file '" , file , " ' for tangling: " , err ))
511
511
512
512
local write_content = table.concat (content , " \n " )
@@ -516,7 +516,7 @@ module.on_event = function(event)
516
516
end )
517
517
end
518
518
519
- vim .loop .fs_write (fd , write_content , 0 , function (werr )
519
+ vim .uv .fs_write (fd , write_content , 0 , function (werr )
520
520
assert (not werr , lib .lazy_string_concat (" Failed to write to '" , file , " ' for tangling: " , werr ))
521
521
tangled_count = tangled_count + 1
522
522
file_count = file_count - 1
@@ -533,7 +533,9 @@ module.on_event = function(event)
533
533
)
534
534
end
535
535
end )
536
- vim .uv .fs_close (fd )
536
+ vim .uv .fs_close (fd , function (err )
537
+ assert (not err , lib .lazy_string_concat (" Failed to close file '" , file , " ' for tangling: " , err ))
538
+ end )
537
539
end )
538
540
:: continue::
539
541
end
0 commit comments