Fix line parser to include exception details