programming cancer: functions that may fail for 15 different reasons and return false. Don't do that.
Use a global error code, return an int, use exceptions, add a debug macro, ... I don't care just pick one.
@CobaltVelvet Return a result object / struct / enum ? :-)