Throw an error if we got an error from SD.