print error before throwing tf
This commit is contained in:
parent
c7ab36baa4
commit
47bd66b079
@ -21,7 +21,10 @@ public:
|
||||
{
|
||||
addr = (void *) SigScanFunc(pattern);
|
||||
if (!addr)
|
||||
{
|
||||
logging::Info("Signature not found");
|
||||
throw std::runtime_error("Signature not found");
|
||||
}
|
||||
addr = static_cast<void *>(static_cast<char *>(addr) + offset);
|
||||
size = patch.size();
|
||||
original.resize(size);
|
||||
|
@ -2,6 +2,7 @@
|
||||
Created on 02.07.18.
|
||||
*/
|
||||
|
||||
#include "logging.hpp"
|
||||
#include <settings/Manager.hpp>
|
||||
|
||||
namespace settings
|
||||
@ -17,6 +18,7 @@ void Manager::add(IVariable &me, std::string name)
|
||||
{
|
||||
if (registered.find(name) != registered.end())
|
||||
{
|
||||
logging::Info(("Double registering variable: " + name).c_str());
|
||||
throw std::runtime_error("Double registering variable: " + name);
|
||||
}
|
||||
registered.emplace(name, me);
|
||||
|
Reference in New Issue
Block a user