Pipe error into tmpError when serializing child objects.