We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6d2d35 commit f37967bCopy full SHA for f37967b
jupyter_server/services/contents/handlers.py
@@ -140,7 +140,9 @@ async def get(self, path=""):
140
141
hash_str = self.get_query_argument("hash", default="0")
142
if hash_str not in {"0", "1"}:
143
- raise web.HTTPError(400, f"Content {hash_str!r} is invalid")
+ raise web.HTTPError(
144
+ 400, f"Hash argument {hash_str!r} is invalid. It must be '0' or '1'."
145
+ )
146
require_hash = int(hash_str)
147
148
if not cm.allow_hidden and await ensure_async(cm.is_hidden(path)):
0 commit comments