Different exception; using sprintf