Want to stop simulation when i get a Error/warning

In reply to Aurelian_from_AMIQ:

You need to copy the modulesim.ini file and place it in a local directory so it it picked up first, or rename the copy and use -modelsimini switch.