• Quinten Palmer's avatar
    Slurp errors to keep errcheck happy · 6fba80d1
    Quinten Palmer authored
    There is nothing really to do with these errors.
    * There are no loggers in the top-level library code, and this is
      already in the rollback error control flow, so there is no erroring to
      signal (we already are).
    * The failure to print to stderr in the main sql-migrate doesn't seem
      to have any sane recourse.
    * We could consider a message in the failure to close the file
      descriptor, but this logic is going to be moved up to the library,
      which still doesn't have a logger, and this is already when we are
      going through the error path, so there is no error to return.
command_new.go 1.68 KB