From 1db27f0203198137118241c944ba408ca98d6bc6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 26 Jul 2004 22:53:29 +0000 Subject: slightly more informative error messages in class File svn-id: r14345 --- common/file.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/file.cpp') diff --git a/common/file.cpp b/common/file.cpp index 4dbebebc6e..cac409d0f5 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -192,7 +192,7 @@ void File::clearIOFailed() { bool File::eof() { if (_handle == NULL) { - error("File is not open!"); + error("File::eof: File is not open!"); return false; } @@ -201,7 +201,7 @@ bool File::eof() { uint32 File::pos() { if (_handle == NULL) { - error("File is not open!"); + error("File::pos: File is not open!"); return 0; } @@ -210,7 +210,7 @@ uint32 File::pos() { uint32 File::size() { if (_handle == NULL) { - error("File is not open!"); + error("File::size: File is not open!"); return 0; } @@ -224,7 +224,7 @@ uint32 File::size() { void File::seek(int32 offs, int whence) { if (_handle == NULL) { - error("File is not open!"); + error("File::seek: File is not open!"); return; } @@ -237,7 +237,7 @@ uint32 File::read(void *ptr, uint32 len) { uint32 real_len; if (_handle == NULL) { - error("File is not open!"); + error("File::read: File is not open!"); return 0; } @@ -255,7 +255,7 @@ uint32 File::read(void *ptr, uint32 len) { uint32 File::write(const void *ptr, uint32 len) { if (_handle == NULL) { - error("File is not open!"); + error("File::write: File is not open!"); return 0; } -- cgit v1.2.3