Updated error handler in dialer js