fixed a warning
throw an error instead of #warning
Added tag v1.9.2 for changeset 77df6fdc2532