change error into warning