More useful error message when spawn fails
Merge pull request #6449 from tkelman/patch-4

More useful error message when spawn fails