Fix the issue https://github.com/CocaineCong/tangseng/issues/48. I change the files in ./app/favorite,gateway,user. Use "github.com/pkg/errors" to wrap error. In a word, If a function doesn't need to return an error, print the error and stack information with logrus, otherwise wrap the error and append some information.
Fix the issue https://github.com/CocaineCong/tangseng/issues/48. I change the files in ./app/favorite,gateway,user. Use "github.com/pkg/errors" to wrap error. In a word, If a function doesn't need to return an error, print the error and stack information with logrus, otherwise wrap the error and append some information.