Added param to hide or show the error stack trace