Simplify the implementation of a function.
Simplify the implementation of a function.

Also improve the error message.

kalj/dealii,sairajat/dealii,spco/dealii,maieneuro/dealii,spco/dealii,danshapero/dealii,JaeryunYim/dealii,spco/dealii,angelrca/dealii,naliboff/dealii,naliboff/dealii,andreamola/dealii,kalj/dealii,shakirbsm/dealii,JaeryunYim/dealii,andreamola/dealii,pesser/dealii,angelrca/dealii,ESeNonFossiIo/dealii,JaeryunYim/dealii,danshapero/dealii,angelrca/dealii,JaeryunYim/dealii,kalj/dealii,andreamola/dealii,kalj/dealii,maieneuro/dealii,EGP-CIG-REU/dealii,EGP-CIG-REU/dealii,JaeryunYim/dealii,jperryhouts/dealii,nicolacavallini/dealii,maieneuro/dealii,naliboff/dealii,kalj/dealii,danshapero/dealii,angelrca/dealii,ESeNonFossiIo/dealii,sairajat/dealii,EGP-CIG-REU/dealii,jperryhouts/dealii,jperryhouts/dealii,angelrca/dealii,pesser/dealii,naliboff/dealii,kalj/dealii,andreamola/dealii,sairajat/dealii,ESeNonFossiIo/dealii,nicolacavallini/dealii,gpitton/dealii,sairajat/dealii,maieneuro/dealii,EGP-CIG-REU/dealii,maieneuro/dealii,spco/dealii,JaeryunYim/dealii,nicolacavallini/dealii,andreamola/dealii,jperryhouts/dealii,maieneuro/dealii,shakirbsm/dealii,naliboff/dealii,nicolacavallini/dealii,nicolacavallini/dealii,pesser/dealii,sairajat/dealii,pesser/dealii,JaeryunYim/dealii,nicolacavallini/dealii,spco/dealii,pesser/dealii,spco/dealii,shakirbsm/dealii,shakirbsm/dealii,EGP-CIG-REU/dealii,spco/dealii,angelrca/dealii,danshapero/dealii,danshapero/dealii,EGP-CIG-REU/dealii,ESeNonFossiIo/dealii,gpitton/dealii,nicolacavallini/dealii,shakirbsm/dealii,gpitton/dealii,ESeNonFossiIo/dealii,pesser/dealii,shakirbsm/dealii,ESeNonFossiIo/dealii,gpitton/dealii,kalj/dealii,shakirbsm/dealii,jperryhouts/dealii,pesser/dealii,andreamola/dealii,gpitton/dealii,danshapero/dealii,naliboff/dealii,maieneuro/dealii,angelrca/dealii,sairajat/dealii,danshapero/dealii,ESeNonFossiIo/dealii,andreamola/dealii,naliboff/dealii,gpitton/dealii,gpitton/dealii,sairajat/dealii,EGP-CIG-REU/dealii,jperryhouts/dealii,jperryhouts/dealii