Change warning to error for non-string key.