Commit 2ee88557 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1258785 - Return a None value when check_prog doesn't find a program. r=ted

parent 07d9c957
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -75,5 +75,6 @@ def check_prog(var, progs, allow_missing=False):
            from mozbuild.shellutil import quote
            error('Cannot find %s (tried: %s)'
                  % (var.lower(), ', '.join(quote(p) for p in progs)))
        return None if value is not_found else value

    return check
    return postcheck