added stack argument for error reporting

DEV-829