# Add user-friendly error to configure script when running in improper location

**URL:** <https://www.ruby-forum.com/t/add-user-friendly-error-to-configure-script-when-running-in-improper-location/223233>\
**Category:** NGINX\
**Created:** [September 26, 2012, 12:56pm UTC](https://www.ruby-forum.com/t/add-user-friendly-error-to-configure-script-when-running-in-improper-location/223233 "2012-09-26T12:56:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 26, 2012, 12:56pm UTC](https://www.ruby-forum.com/t/add-user-friendly-error-to-configure-script-when-running-in-improper-location/223233/1 "2012-09-26T12:56:59Z")

</div>

Here’s a small patch to add a user-friendly error message.

I.e. if you run “cd auto; ./configure” instead of “./auto/configure”,  
you get:

./configure: 10: .: Can’t open auto/options

With this patch you now get:

No ‘auto’ subdir found, are you running this from the root dir?

Patch attached, please submit to svn.  
Thanks
