handle interface error
Merge pull request #3038 from dimagi/interfaceerror

handle interface error