IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 12, 2008, 5:12:52 PM (18 years ago)
Author:
jhoblitt
Message:

change ds*ls utilties to always return the HTTP status code - 300 as the exit status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsget

    r17637 r17649  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.24 2008-05-12 22:04:53 jhoblitt Exp $
     5# $Id: dsget,v 1.25 2008-05-13 03:12:52 jhoblitt Exp $
    66
    77use strict;
     
    130130    );
    131131
    132 die "request failed" unless defined $response;
    133 unless ($response->is_success) {
     132
     133unless (defined $response or $response->is_success) {
    134134    warn "request failed: ", $response->status_line;
    135135    exit($response->code - 300);
    136136}
     137
    137138die "checksum failed" unless $response->data;
    138139
Note: See TracChangeset for help on using the changeset viewer.