OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-storage commits / b103ce8

Provide a clearer error message
b103ce872b79eaa3082ecc352e566e22675d9a8e
by Linas Vepštas <linasvepstas@gmail.com> · 2026-01-19T04:03:47.000Z

Changed files (1) +3 -1

opencog/persist/api/StorageNode.cc +3 -1
……@@ -383,7 +383,9 @@ void StorageNode::barrier(AtomSpace* as)
383383void StorageNode::store_atom(const Handle& h)
384384{
385385 if (_target_as->get_read_only())
386 throw RuntimeException(TRACE_INFO, "Read-only AtomSpace!");
386 throw RuntimeException(TRACE_INFO,
387 "Attempt to store to read-only target AtomSpace %s",
388 _target_as->to_string().c_str());
387389
388390 storeAtom(h);
389391}