[qfcc] Show algebra signature for bad basis blades

Clear error messages are always more helpful than opaque ones.
This commit is contained in:
Bill Currie 2023-08-27 15:17:22 +09:00
parent c7d6e80d69
commit 5aea74de7e
1 changed files with 2 additions and 1 deletions

View File

@ -517,7 +517,8 @@ algebra_blade_value (algebra_t *alg, const char *name)
uint32_t c = indices[i] - '0';
c -= alg->zero != 1;
if (c >= dimension) {
error (0, "basis %c not in algebra %d", indices[i], c);
error (0, "basis %c not in algebra(%d,%d,%d)", indices[i],
alg->plus, alg->minus, alg->zero);
continue;
}
uint32_t mask = 1u << c;