add error and msg function
Merge branch 'master' of github.com:chrisyao1990/backup-ec2