error handling

** prompt error message
** log stack trace in error panel