aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
authorMax Horn2004-07-26 22:53:29 +0000
committerMax Horn2004-07-26 22:53:29 +0000
commit1db27f0203198137118241c944ba408ca98d6bc6 (patch)
tree85253bc90801c2c438fc99dd21785a5a635da081 /common/file.cpp
parentf8f312f0bb41ae0cf96b4ff616c99ead7748a753 (diff)
downloadscummvm-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.cpp12
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;
}