bugfix, return err when readConf() failed

an obviously bug in readConf() function