pisi: handle error for file command