IncludeCPP 3.8.9__py3-none-any.whl → 4.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -455,12 +455,12 @@ class CsslLang:
455
455
 
456
456
  return result
457
457
  except Exception as e:
458
- # Format error message nicely
458
+ # Format error message nicely - don't add prefixes, let CLI handle that
459
459
  error_msg = str(e)
460
- # Don't double-wrap error messages
460
+ # Strip any existing CSSL Error: prefix to avoid duplication
461
461
  if error_msg.startswith("CSSL Error:"):
462
- raise RuntimeError(error_msg) from e
463
- raise RuntimeError(f"CSSL Error:\n{error_msg}") from e
462
+ error_msg = error_msg[11:].strip()
463
+ raise RuntimeError(error_msg) from e
464
464
 
465
465
  def exec(self, path_or_code: str, *args) -> Any:
466
466
  """