It seems what you need is the right error kind to distinguish this error, this is done in: https://github.com/snapcore/snapd/pull/4428 now
It seems what you need is the right error kind to distinguish this error, this is done in: https:/ /github. com/snapcore/ snapd/pull/ 4428 now