Ignore:
Timestamp:
May 11, 2007, 11:31:34 AM (17 years ago)
Author:
mmc
Message:

Final tweaks to improve the messages for automatic ticket submission
and work around problems where the ticket number comes back as "".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/bugreport.tcl

    r724 r727  
    151151
    152152        .bugreport.expl insert end "This tool encountered an unexpected error.  We tried to submit a trouble report automatically, but that failed.  If you want to report this incident, you can file your own trouble report.  Look for the \"Help\" or \"Support\" links on the main navigation bar of the web site.\n\nIf you continue having trouble with this tool, please close it and launch another session."
    153     } elseif {[regexp {Ticket #([0-9]+) +\((.*?)\) +([0-9]+) +times} $result match ticket extra times]} {
     153    } elseif {[regexp {Ticket #([0-9]*) +\((.*?)\) +([0-9]+) +times} $result match ticket extra times]} {
    154154        .bugreport.expl insert end "This tool encountered an unexpected error.  The problem has been reported as " "" "Ticket #$ticket" bold " in our system." ""
    155155        if {[string is integer $times] && $times > 1} {
     
    229229        report $stackTrace \
    230230        login $tcl_platform(user) \
    231         session [Rappture::Tool::resources -session] \
     231        sesstoken [Rappture::Tool::resources -session] \
    232232        hostname [info hostname] \
    233233        category rappture \
     
    249249    }
    250250    upvar #0 $token rval
    251     if {[regexp {Ticket #[0-9]+ \(.*?\) [0-9]+ times} $rval(body) match]} {
     251    if {[regexp {Ticket #[0-9]* +\(.*?\) +[0-9]+ +times} $rval(body) match]} {
    252252        return $match
    253253    }
    254     error "Report received, but ticket may not have been filed"
     254    error "Report received, but ticket may not have been filed.  Here's the result...\n$rval(body)"
    255255}
    256256
Note: See TracChangeset for help on using the changeset viewer.