ConstraintValidationFailed error does not show when cypher error

Not sure what happen, but now my server does not show the detail error when cypher error:
Ex:

CREATE (charlie:Person:Actor {name: 'Charlie Sheen'})-[:ACTED_IN {role: 'Bud Fox'}]->(wallStreet:Movie {title: 'Wall Street'})<-[:DIRECTED]-(oliver:Person:Director {name: 'Oliver Stone'})

If I do cypher

MATCH(n:Person  {name: 'Charlie Sheen'})
DELETE n

Current

#### Neo.DatabaseError.Database.Unknown

Unable to complete transaction.

Should be

Neo.ClientError.Schema.ConstraintValidationFailed

Cannot delete node<7922>, because it still has relationships. To delete this node, you must first delete its relationships.

Any idea why?

@abccbaandy

Is there any detail on Neo4j version?
At the time of error anything written to logs\debug.log?

version is 5.26

For debug.log, yes it write the real error about relationships exist issue.

@abccbaandy

I am unable to reproduce, for example

neo4j@ubuntu22dockerdebjava17:~/single/instance1/neo4j-enterprise-5.26.0/bin$ ./cypher-shell
username: neo4j
password:
Connected to Neo4j using Bolt protocol version 5.7 at neo4j://localhost:7687 as user neo4j.
Type :help for a list of available commands or :exit to exit the shell.
Note that Cypher queries must end with a semicolon.

neo4j@neo4j> CREATE (charlie:Person:Actor {name: 'Charlie Sheen'})-[:ACTED_IN {role: 'Bud Fox'}]->(wallStreet:Movie {title: 'Wall Street'})<-[:DIRECTED]-(oliver:Person:Director {name: 'Oliver Stone'});
0 rows
ready to start consuming query after 547 ms, results consumed after another 0 ms
Added 3 nodes, Created 2 relationships, Set 4 properties, Added 5 labels


neo4j@neo4j> MATCH(n:Person  {name: 'Charlie Sheen'})
             DELETE n;


Cannot delete node<130000>, because it still has relationships. To delete this node, you must first delete its relationships.

through what client are you issuing the cypher statements through?

I use neo4j browser.
It's normal at beginning, and not sure when it's broken.

And I can't reproduce too, a fresh server work well, just that one fail.