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

    r17637 r17649  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsrootls,v 1.2 2008-05-12 22:04:53 jhoblitt Exp $
     5# $Id: dsrootls,v 1.3 2008-05-13 03:12:52 jhoblitt Exp $
    66
    77use strict;
     
    4040    );
    4141
    42 die "request failed" unless defined $response;
    43 die "request failed: ", $response->status_line unless $response->is_success;
     42unless (defined $response or $response->is_success) {
     43    warn "request failed: ", $response->status_line;
     44    exit($response->code - 300);
     45}
    4446
    4547# file retreival succeed
Note: See TracChangeset for help on using the changeset viewer.