Suggestion on error message

Hi developers, i open a thread here as i can not open an issue in github

I’d like to suggest a minor change to the library which might help users. In particular, when one tries to evaluate a rotation in CKKS without first generating the corresponding key switching key, the library says something like:

src/pke/lib/schemebase/base-leveledshe.cpp:l.404:EvalAutomorphism(): EvalKey for index [5] is not found.

which i understand, however the index [5] does not correspond to the actual rotation, as in this case i was rotating by 128 (i think 5 is the index i such that evalKeyMap.find(i) returns the rot key corresponding to 128).

I think it would be great to tell the user the * actual index * that is missing so that it is way easier to fix:)

Hi @narger - are you sure you were rotating by 128, not by 1?

hi @Caesar ! my bad, the error message is

src/pke/lib/schemebase/base-leveledshe.cpp:l.404:EvalAutomorphism(): EvalKey for index [81409] is not found.

and this corresponds to rotation by 128 in the ring 2^17