Updated to provide row when outputting errors