Cleaned up error message for get_dim_size