diff --git a/packages/syft/src/syft/service/dataset/dataset.py b/packages/syft/src/syft/service/dataset/dataset.py index db5fe2f482f..58329a06611 100644 --- a/packages/syft/src/syft/service/dataset/dataset.py +++ b/packages/syft/src/syft/service/dataset/dataset.py @@ -292,7 +292,7 @@ def data(self) -> Any: if self.has_permission(res): return res.syft_action_data else: - warning = SyftWarning( + warning = SyftError( message="You do not have permission to access private data." ) display(warning)