Replace an assert by a Log::error