Changed error log to get more meaningful err msg