diff options
author | Max Horn | 2004-07-26 22:53:29 +0000 |
---|---|---|
committer | Max Horn | 2004-07-26 22:53:29 +0000 |
commit | 1db27f0203198137118241c944ba408ca98d6bc6 (patch) | |
tree | 85253bc90801c2c438fc99dd21785a5a635da081 /common/file.cpp | |
parent | f8f312f0bb41ae0cf96b4ff616c99ead7748a753 (diff) | |
download | scummvm-rg350-1db27f0203198137118241c944ba408ca98d6bc6.tar.gz scummvm-rg350-1db27f0203198137118241c944ba408ca98d6bc6.tar.bz2 scummvm-rg350-1db27f0203198137118241c944ba408ca98d6bc6.zip |
slightly more informative error messages in class File
svn-id: r14345
Diffstat (limited to 'common/file.cpp')
-rw-r--r-- | common/file.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |