code: def prettify_exc(error):
      
      matched_exceptions = [k for k in KNOWN_EXCEPTIONS.keys() if k in error]
      if not matched_exceptions:
          return "{}".format(vistir.misc.decode_for_output(error))
      errors = []
      for match in matched_exceptions:
          _, error, info = error.rpartition(KNOWN_EXCEPTIONS[match])
          errors.append("{} {}".format(error, info))
  
      return "\n".join(errors)
docs: Catch known errors and prettify them instead of showing the
      entire traceback, for better UX