Fix weird behaviour for 64-bit version on Windows

This commit is contained in:
wmayer
2013-07-02 14:52:32 +02:00
parent fc2fb55042
commit 8c6f77bb2b
2 changed files with 10 additions and 2 deletions

View File

@@ -803,8 +803,8 @@ Document::readObjects(Base::XMLReader& reader)
reader.addName(name.c_str(), obj->getNameInDocument());
}
}
catch (Base::Exception&) {
Base::Console().Message("Cannot create object '%s'\n", name.c_str());
catch (const Base::Exception& e) {
Base::Console().Error("Cannot create object '%s': (%s)\n", name.c_str(), e.what());
}
}
reader.readEndElement("Objects");