[Scummvm-cvs-logs] CVS: scummvm/common file.cpp,1.65,1.66
Max Horn
fingolfin at users.sourceforge.net
Mon Jul 26 15:54:10 CEST 2004
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22737
Modified Files:
file.cpp
Log Message:
slightly more informative error messages in class File
Index: file.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/file.cpp,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- file.cpp 23 Jul 2004 01:39:04 -0000 1.65
+++ file.cpp 26 Jul 2004 22:53:29 -0000 1.66
@@ -192,7 +192,7 @@
bool File::eof() {
if (_handle == NULL) {
- error("File is not open!");
+ error("File::eof: File is not open!");
return false;
}
@@ -201,7 +201,7 @@
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::size() {
if (_handle == NULL) {
- error("File is not open!");
+ error("File::size: File is not open!");
return 0;
}
@@ -224,7 +224,7 @@
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 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::write(const void *ptr, uint32 len) {
if (_handle == NULL) {
- error("File is not open!");
+ error("File::write: File is not open!");
return 0;
}
More information about the Scummvm-git-logs
mailing list