1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-26 11:27:38 +00:00

Make mount error messages a bit more consistent

- Move most error message constants to a new MountHelpers class.
 - Be a little more consistent in when we throw "No such file" vs "Not a
   file/directory" messages.
This commit is contained in:
Jonathan Coates
2023-10-22 13:13:07 +01:00
parent cab66a2d6e
commit 09e521727f
16 changed files with 197 additions and 86 deletions

View File

@@ -21,6 +21,8 @@ import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import static dan200.computercraft.core.filesystem.MountHelpers.NO_SUCH_FILE;
/**
* A mount backed by Minecraft's {@link ResourceManager}.
*