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

    r17637 r17649  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsleech,v 1.10 2008-05-12 22:04:53 jhoblitt Exp $
     5# $Id: dsleech,v 1.11 2008-05-13 03:12:52 jhoblitt Exp $
    66
    77use strict;
     
    6767);
    6868
    69 unless (defined $response->is_success) {
    70     die "request failed: ", $response->status_line;
     69unless (defined $response or $response->is_success) {
     70    warn "request failed: ", $response->status_line;
     71    exit($response->code - 300);
    7172}
    7273
Note: See TracChangeset for help on using the changeset viewer.