capture stderr to show errors on failure