Changeset 1335


Ignore:
Timestamp:
Jan 28, 2011, 7:26:41 AM (10 years ago)
Author:
Peter Johansson
Message:

avoid error message: Unknwon error 0

Location:
branches/0.9-stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9-stable/bin/Parameter.cc

    r1264 r1335  
    33/*
    44  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
    5   Copyright (C) 2009, 2010 Peter Johansson
     5  Copyright (C) 2009, 2010, 2011 Peter Johansson
    66
    77  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    146146      if (S_ISDIR(buf.st_mode))
    147147        return;
     148      errno = ENOTDIR;
    148149    }
    149150    std::stringstream ss;
     151    assert(errno);
    150152    ss << cmd_.program_name() << ": '" << path << "': "
    151153       << strerror(errno);
  • branches/0.9-stable/test/error_test.sh

    r1334 r1335  
    3636$GREP 'svncopyright:' stderr || exit_fail
    3737$GREP "'${abs_top_srcdir}/README': " stderr || exit_fail
     38$GREP "Unknown error" stderr && exit_fail
    3839
    3940SVNDIGEST_run 1 --root .
Note: See TracChangeset for help on using the changeset viewer.