if `buildCallback` is set, there is not need to log the error, we can mix this into the previous condition.