a comprehensible message when FileStatusMap.assertAllowModifications fails

This commit is contained in:
peter
2016-02-09 20:51:19 +01:00
parent 67d273cf2a
commit e251051bf1
@@ -176,7 +176,7 @@ public class FileStatusMap implements Disposable {
private void assertAllowModifications() {
try {
assert myAllowDirt;
assert myAllowDirt : "PSI/document/model changes are not allowed during highlighting";
}
finally {
myAllowDirt = true; //give next test a chance