- error_register("Write failure", errno, command->context->command_line, command->unit->fstream->name);\r
+ ERROR2("[%s] Error while writing input to child `%s'", command->context->pos, command->context->command_line);\r
+ unit_set_error(command->unit, (int)GetLastError(), 0, command->context->pos);\r