Trigger an error message when user tries to modify a record that doesnt exist

How to enable an error message when user tries to delete a record that doesnt exist? confd says “No modifications to commit” after user commits, but is there a way to trigger an error as soon as user tries to delete/change a value that doesnt exist in the CDB?

root@cavium-thunderx 21:31:43% show link vlan-map
vlan-map 0 {
    vid [ 3 100 200 ];
}
[ok][2018-01-12 21:31:47]

[edit]
root@cavium-thunderx 21:31:47% delete link vlan-map 0 vid 111
[ok][2018-01-12 21:31:57]

[edit]
root@cavium-thunderx 21:31:57% commit
No modifications to commit.
[ok][2018-01-12 21:32:00]

[edit]

You basically asked the same question and got an answer 6 months ago:
Displaying error message when user tries to delete something that doesnt exist in DB?

My sincere apologies. Didnt follow up the previous post. W