catch error when unkonwn language pass in