Skip to content

Commit 2d7d935

Browse files
docs: clarify <filepath@> error message to enforce @ convention
1 parent 1a6c167 commit 2d7d935

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/datajoint/builtin_codecs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,10 @@ class Recordings(dj.Manual):
779779
def get_dtype(self, is_store: bool) -> str:
780780
"""Filepath is external only."""
781781
if not is_store:
782-
raise DataJointError("<filepath> requires @store")
782+
raise DataJointError(
783+
"<filepath> requires @ symbol. Use <filepath@> for default store "
784+
"or <filepath@store> to specify store."
785+
)
783786
return "json"
784787

785788
def encode(self, value: Any, *, key: dict | None = None, store_name: str | None = None) -> dict:

0 commit comments

Comments
 (0)