Track inner exception to prevent compiler warning

Creating the build scripts exposed a compiler warning.  Updated to include
the unused variable as the inner exception.

The compile portion of the build script lists warnings, so this reduces
the noise of the script a bit.