diff --git a/src/jse/org/luaj/vm2/lib/jse/JseOsLib.java b/src/jse/org/luaj/vm2/lib/jse/JseOsLib.java index eb6c4e78..3d173b8a 100644 --- a/src/jse/org/luaj/vm2/lib/jse/JseOsLib.java +++ b/src/jse/org/luaj/vm2/lib/jse/JseOsLib.java @@ -120,7 +120,7 @@ public class JseOsLib extends org.luaj.vm2.lib.OsLib { if ( ! f.exists() ) throw new IOException("No such file or directory"); if ( ! f.renameTo(new File(newname)) ) - throw new IOException("Failed to delete"); + throw new IOException("Failed to rename"); } protected String tmpname() {