Better error message when capturing fails