robinmonjo / coincoin

Blockchain based cryptocurrency proof-of-concept built with Elixir. Feedback welcome
404 stars 54 forks source link

Move all error to atom #18

Closed yordis closed 6 years ago

yordis commented 7 years ago

Hey, I notice you are sending so errors like human readable, that is good but it doesn't scale that well because at the moment you need to know which error happened you will need to go back and use some atom or something descriptive or you will have to do some string pattern matching which is really bad.

I suggest to use atoms for identifier particular error and have some module with the mapping to human message.