spend_diff - improve error handling.