add stack structure to error message for better automated consumption