dushibaiyu/yu

False use of 'std.exception: errnoEnforce'

mogud opened this issue · 1 comments

mogud commented

The first param of errnoEnforce should be a value to check. Here is the errnoEnforce implementation:

T errnoEnforce(T, string file = __FILE__, size_t line = __LINE__)
    (T value, lazy string msg = null)
{
    if (!value) throw new ErrnoException(msg, file, line);
    return value;
}

it is fixed.