more descriptive logging for script errors