added shock error message to preview function error message