From a5d1094daba6dd0f9df42d7b0307a05d78fdaa36 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 30 Sep 2009 19:44:03 +0000 Subject: SCI: Make kFile error messages slightly more verbose svn-id: r44497 --- engines/sci/engine/kfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index bdad29efe7..8e4dbdb148 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -141,9 +141,9 @@ void file_open(EngineState *s, const char *filename, int mode) { // clone the file for that, etc., see also the long comment at the start // of this file. // We really need some examples on how this is used. - error("file_open(_K_FILE_MODE_OPEN_OR_CREATE) File creation currently not supported"); + error("file_open(_K_FILE_MODE_OPEN_OR_CREATE) File creation currently not supported (filename '%s')", englishName.c_str()); } else { - error("file_open: unsupported mode %d", mode); + error("file_open: unsupported mode %d (filename '%s')", mode, englishName.c_str()); } if (!inFile && !outFile) { // Failed -- cgit v1.2.3