Make error log more generic