Less verbose internal error andling in debug mode