> + ((nar-invalid-hash-error? condition)) Should be ((nar-invalid-hash-error? condition) #t), I guess. Otherwise, the procedure returns ‘undefined’.