Return warnings for file extension

Needed for theodi/shared#120