Error when given profile was not available

Produced a non-obvious error before. Let's make this more explicit.