Changeset 20989


Ignore:
Timestamp:
2009-12-01T00:25:15+13:00 (12 years ago)
Author:
davidb
Message:

Improved error reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/pharos/trunk/cmdline-api-srcpack/bin/script/imageis-query-by-id.sh

    r20983 r20989  
    2525
    2626if [ ! -f image_cbs_result.xml ] ; then
    27   echo "Failed to generate image_cbs_result.xml"
    28   echo "Check catalina.out for server-side error messages"
     27  echo ""
     28  echo "Error: Failed to generate image_cbs_result.xml"
     29  echo "       Check catalina.out for server-side error messages"
     30  echo ""
    2931  exit 1
    30 elif [ -z image_cbs_result.xml ] ; then
    31   echo "Server returned zero sized file image_cbs_result.xml"
    32   echo "Check that the doc-id used is valid"
     32elif [ ! -s image_cbs_result.xml ] ; then
     33  echo ""
     34  echo "Warning: Server returned zero sized file image_cbs_result.xml"
     35  echo "         Check that the doc-id used is valid"
     36  echo ""
    3337else
    3438  cat image_cbs_result.xml
     39  echo ""
    3540  /bin/rm image_cbs_result.xml
    3641fi
Note: See TracChangeset for help on using the changeset viewer.