New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82920


Ignore:
Timestamp:
08/21/11 18:23:40 (4 years ago)
Author:
derek@…
Message:

Catch errors from curl post

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc11-statistics/base/src/port/port.tcl

    r79672 r82920  
    27282728             
    27292729            set json [json_encode_stats ${macports::stats_id} os ports] 
    2730             curl post "submit\[data\]=$json" ${macports::stats_url}   
     2730            ui_notice "Submitting to ${macports::stats_url}" 
     2731             
     2732            if {[catch {curl post "submission\[data\]=$json" ${macports::stats_url}} value]} { 
     2733                global errorInfo 
     2734                ui_error "$errorInfo" 
     2735                return 0 
     2736            } 
    27312737        } 
    27322738        default { 
Note: See TracChangeset for help on using the changeset viewer.