better diagnostic for require failures

/cc @densh