Use proper format string for error message

Change-Id: Ia5e47a5b9cfc282c20c3225f1a7c878bfdc9e48f
Reviewed-by: BogDan Vatra <bogdan@kde.org>