Fix: Do not ignore errors in config anymore
Fix: Do not ignore errors in config anymore

The function already returns `Result<_>`, the only thing that had to be
done was refactoring the code for actually returning an error in that
case.

Signed-off-by: Matthias Beyer <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@beyermatthias.de>

matthiasbeyer/imag,matthiasbeyer/imag