Ignore:
Timestamp:
Aug 22, 2011, 1:23:40 AM (9 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.