before switch
add error codes reading
Merge branch 'master' of https://github.com/Dareryan/Shortpath