terra-sync / cnc

Seamless Database Replication tool
GNU General Public License v3.0
4 stars 2 forks source link

Error codes #50

Open panosfol opened 4 months ago

panosfol commented 4 months ago

I believe we should add error codes by using #define macro. That way we can have uniformity on our return values of our functions. Each code should be unique and usable by multiple functions and should replace the existing return values i.e:

return -1;

would become

return EFAIL;

or something more specific. @charmitro thoughts on what are error code naming convention should be?

charmitro commented 4 months ago

Ack and agree.