From e514a6c8c1f16f1f81a9b66a5c4d88ac39d49bc6 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 8 Aug 2019 00:04:44 +0200 Subject: HDB: Better error messages --- engines/hdb/file-manager.cpp | 2 +- engines/hdb/hdb.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/hdb/file-manager.cpp b/engines/hdb/file-manager.cpp index 3af8066fbc..1e23032108 100644 --- a/engines/hdb/file-manager.cpp +++ b/engines/hdb/file-manager.cpp @@ -43,7 +43,7 @@ bool FileMan::openMPC(const Common::String &filename) { uint32 offset; if (!_mpcFile->open(filename)) { - error("FileMan::openMPC(): Error reading the MSD/MPC file"); + error("FileMan::openMPC(): Error reading the MSD/MPC file %s", filename.c_str()); return false; } diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 6fbafa95d9..f620bd378c 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -126,7 +126,7 @@ bool HDBGame::init() { // Init fileMan if (!_fileMan->openMPC(getGameFile())) { - error("FileMan::openMPC: Cannot find the hyperspace.mpc data file."); + error("FileMan::openMPC: Cannot find the %s data file", getGameFile()); } if (!_gfx->init()) { error("Gfx::init: Couldn't initialize Gfx"); -- cgit v1.2.3