Ignore:
Timestamp:
Jul 19, 2005, 7:38:26 PM (14 years ago)
Author:
jkh
Message:

Add more granular error reporting to reinplace (to aid in debugging) and
clean up a file descriptor leak.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portutil.tcl

    r12159 r13148  
    458458            ui_error "reinplace: $error"
    459459            file delete "$tmpfile"
    460             return -code error "reinplace failed"
     460            close $tmpfd
     461            return -code error "reinplace sed(1) failed"
    461462        }
    462463       
     
    468469            ui_error "reinplace: $error"
    469470            file delete "$tmpfile"
    470             return -code error "reinplace failed"
     471            return -code error "reinplace permissions failed"
    471472        }
    472473       
     
    474475            ui_error "reinplace: $error"
    475476            file delete "$tmpfile"
    476             return -code error "reinplace failed"
     477            return -code error "reinplace copy failed"
    477478        }
    478479       
Note: See TracChangeset for help on using the changeset viewer.