board_options.sh: improved error message on invalid board

board_options.sh is used by build_image to load
/build/<board>/etc/make.conf.board_setup, but the directory /build/<board> does
not exist if the board provided is invalid or has not been set up. This change
prints out a more helpful error message when the directory does not exist.

BUG=chromium:382539
TEST=Run `setup_board` and `build_image` for valid and invalid boards.
TEST=Tryjob on x86-generic-full.

Change-Id: I9cb94544b1eade1981c8b2789ba7fa7ee8da9db4
Reviewed-on: https://chromium-review.googlesource.com/225440
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Tested-by: Yiming Chen <yimingc@chromium.org>
Commit-Queue: Yiming Chen <yimingc@chromium.org>
1 file changed