From eb628e9b623ec360658119b4d664a731228691ed Mon Sep 17 00:00:00 2001 From: SquidDev Date: Tue, 13 Jun 2017 19:33:42 +0100 Subject: [PATCH] Make error messages more consistent --- .../dan200/computercraft/core/filesystem/FileSystem.java | 8 ++++---- .../computercraft/lua/rom/programs/fun/advanced/paint.lua | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/dan200/computercraft/core/filesystem/FileSystem.java b/src/main/java/dan200/computercraft/core/filesystem/FileSystem.java index b6a6d870b..cab9abdac 100644 --- a/src/main/java/dan200/computercraft/core/filesystem/FileSystem.java +++ b/src/main/java/dan200/computercraft/core/filesystem/FileSystem.java @@ -172,7 +172,7 @@ public void makeDirectory( String path ) throws FileSystemException { if( m_writableMount == null ) { - throw new FileSystemException( "Access Denied" ); + throw new FileSystemException( "Access denied" ); } try { @@ -199,7 +199,7 @@ public void delete( String path ) throws FileSystemException { if( m_writableMount == null ) { - throw new FileSystemException( "Access Denied" ); + throw new FileSystemException( "Access denied" ); } try { @@ -219,7 +219,7 @@ public OutputStream openForWrite( String path ) throws FileSystemException { if( m_writableMount == null ) { - throw new FileSystemException( "Access Denied" ); + throw new FileSystemException( "Access denied" ); } try { @@ -251,7 +251,7 @@ public OutputStream openForAppend( String path ) throws FileSystemException { if( m_writableMount == null ) { - throw new FileSystemException( "Access Denied" ); + throw new FileSystemException( "Access denied" ); } try { diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/paint.lua b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/paint.lua index bba2f67a3..59089054d 100644 --- a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/paint.lua +++ b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/paint.lua @@ -310,7 +310,7 @@ local function accessMenu() -- Select an option if mChoices[selection]=="Save" then if bReadOnly then - fMessage = "Access Denied" + fMessage = "Access denied" return false end local success = save(sPath)