Skip to content

Commit

Permalink
adds instructions to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Jul 24, 2024
1 parent 4964dc2 commit cb78d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/posit/connect/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def render(self) -> Task:
return variant.render()
else:
raise ValueError(
f"Restart not supported for this application mode. Found {self.app_mode}"
f"Render not supported for this application mode: {self.app_mode}. Did you need to use the 'restart()' method instead? Note that some application modes do not support 'render()' or 'restart()'."
)

def restart(self) -> None:
Expand Down Expand Up @@ -242,7 +242,7 @@ def restart(self) -> None:
return None
else:
raise ValueError(
f"Restart not supported for this application mode. Found {self.app_mode}"
f"Restart not supported for this application mode: {self.app_mode}. Did you need to use the 'render()' method instead? Note that some application modes do not support 'render()' or 'restart()'."
)

@overload
Expand Down

0 comments on commit cb78d63

Please sign in to comment.