Fix small exception typos in Lib (#818)

2 files changed