Modified test of err to support sublime 3.