Better errors on graph loading, fixes #179