Make the default require implementation throw more friendly errors