Add error notices when ajax requests fail.