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/dsproductls

    r17637 r17649  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsproductls,v 1.4 2008-05-12 22:04:53 jhoblitt Exp $
     5# $Id: dsproductls,v 1.5 2008-05-13 03:12:52 jhoblitt Exp $
    66
    77use strict;
     
    4343    );
    4444
    45 die "request failed" unless defined $response;
    46 die "request failed: ", $response->status_line unless $response->is_success;
     45unless (defined $response or $response->is_success) {
     46    warn "request failed: ", $response->status_line;
     47    exit($response->code - 300);
     48}
    4749
    4850# file retreival succeed
Note: See TracChangeset for help on using the changeset viewer.