Add better error checks for output type
Add better error checks for output type

mwiesenberger/feltor,feltor-dev/feltor,mwiesenberger/feltor,feltor-dev/feltor,feltor-dev/feltor,mwiesenberger/feltor,feltor-dev/feltor,mwiesenberger/feltor