You can simply `return jm.Error`. jm.Error is already an `error`, no need to create a new one.