Handle error in getPath's callback

see #16