Skip to content

Commit

Permalink
Print out which scope has no CFG in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Oct 15, 2014
1 parent cc46059 commit 3348c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ir/IRScope.java
Expand Up @@ -1034,7 +1034,7 @@ public List<Instr> getInstrs() {
if (persistenceStore != null) {
instrList = persistenceStore.decodeInstructionsAt(this, instructionsOffsetInfoPersistenceBuffer);
}
if (cfg != null) throw new RuntimeException("Please use the CFG to access this scope's instructions.");
if (cfg != null) throw new RuntimeException("Please use the CFG to access this scope's instructions: " + this);
return instrList;
}

Expand Down

0 comments on commit 3348c11

Please sign in to comment.