raise error when msg can't be saved