log: return proper errors