Fixed better error message for wrong require