Bug 4540: Yang parser exceptions should follow consistent path
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / reactor / StatementContextWriter.java
index 7ad0bae9a76afd4b154c840aba398dd373e7eafe..3f8684e7dba8d52e1bae475b7017188681cd5e33 100644 (file)
@@ -36,7 +36,7 @@ class StatementContextWriter implements StatementWriter {
 
     @Override
     public void argumentValue(String value, StatementSourceReference ref) {
-        Preconditions.checkState(current != null, "Could not set two arguments for one statement.");
+        Preconditions.checkState(current != null, "Could not set two arguments for one statement: %s", ref);
         current.setArgument(value, ref);
     }