IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2008, 1:39:32 PM (18 years ago)
Author:
jhoblitt
Message:

fix HTTP error code reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsget

    r17534 r17545  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.20 2008-05-06 02:35:22 jhoblitt Exp $
     5# $Id: dsget,v 1.21 2008-05-06 23:39:32 jhoblitt Exp $
    66
    77use strict;
     
    131131die "request failed" unless defined $response;
    132132unless ($response->is_success) {
    133     $? = $response->code;
    134     die "request failed: ", $response->status_line;
     133    warn "request failed: ", $response->status_line;
     134    exit($response->code - 300);
    135135}
    136136die "checksum failed" unless $response->data;
Note: See TracChangeset for help on using the changeset viewer.