Skip to content

Commit

Permalink
Merge pull request #215 from datalad/enh-msg
Browse files Browse the repository at this point in the history
State by what component a system is not supported in a generic message
  • Loading branch information
yarikoptic authored Dec 13, 2024
2 parents db49453 + a5cf335 commit 0001c4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/datalad_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@ def _install_macos(self, path: str) -> Path:

def assert_supported_system(self, **_kwargs: Any) -> None:
if not ON_POSIX:
raise MethodNotSupportedError(f"{SYSTEM} OS not supported")
raise MethodNotSupportedError(f"{SYSTEM} OS not supported by {self.NAME}")


@GitAnnexComponent.register_installer
Expand Down Expand Up @@ -2084,7 +2084,7 @@ def install_package(

def assert_supported_system(self, **kwargs: Any) -> None:
if not (ON_LINUX or ON_MACOS or ON_WINDOWS):
raise MethodNotSupportedError(f"{SYSTEM} OS not supported")
raise MethodNotSupportedError(f"{SYSTEM} OS not supported by {self.NAME}")
elif (
ON_LINUX
and kwargs.get("install_dir") is None
Expand Down Expand Up @@ -2243,7 +2243,7 @@ def install_package(

def assert_supported_system(self, **kwargs: Any) -> None:
if not (ON_LINUX or ON_MACOS or ON_WINDOWS):
raise MethodNotSupportedError(f"{SYSTEM} OS not supported")
raise MethodNotSupportedError(f"{SYSTEM} OS not supported by {self.NAME}")
elif (
ON_LINUX
and kwargs.get("install_dir") is None
Expand Down Expand Up @@ -2292,7 +2292,7 @@ def install_package(

def assert_supported_system(self, **_kwargs: Any) -> None:
if not ON_MACOS:
raise MethodNotSupportedError(f"{SYSTEM} OS not supported")
raise MethodNotSupportedError(f"{SYSTEM} OS not supported by {self.NAME}")


@GitAnnexRemoteRCloneComponent.register_installer
Expand Down Expand Up @@ -2353,7 +2353,7 @@ def install_package(

def assert_supported_system(self, **_kwargs: Any) -> None:
if not ON_POSIX:
raise MethodNotSupportedError(f"{SYSTEM} OS not supported")
raise MethodNotSupportedError(f"{SYSTEM} OS not supported by {self.NAME}")


@RCloneComponent.register_installer
Expand Down

0 comments on commit 0001c4c

Please sign in to comment.