IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17527 for trunk/DataStore


Ignore:
Timestamp:
May 5, 2008, 10:38:34 AM (18 years ago)
Author:
jhoblitt
Message:

change dsget to return the HTTP status code on failure

Location:
trunk/DataStore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/Changes

    r17526 r17527  
    22
    330.07
     4    - change dsget to return the HTTP status code on failure
    45    - remove use of parse_neb_key() from dsget
    56    - dsget doc updates
  • trunk/DataStore/scripts/dsget

    r17526 r17527  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.17 2008-05-05 20:26:46 jhoblitt Exp $
     5# $Id: dsget,v 1.18 2008-05-05 20:38:34 jhoblitt Exp $
    66
    77use strict;
     
    114114
    115115die "request failed" unless defined $response;
    116 die "request failed: ", $response->status_line unless $response->is_success;
     116unless ($response->is_success) {
     117    $? = $response->code;
     118    die "request failed: ", $response->status_line;
     119}
    117120die "checksum failed" unless $response->data;
    118121
Note: See TracChangeset for help on using the changeset viewer.