- (tim) [session.c] Improve error reporting on set_id().