Extract common error method
Merge branch 'master' of github.com:pkordel/netaxept