handling error messages better tp #1376

prevents output of "Error launching preview: ,error,[object Object]"