1
0
Fork 0

improve exception message when transition is not found

master
Alexey Skorokhodov 2015-05-30 12:15:32 -07:00
parent cb1df271aa
commit fec5da7ab4
1 changed files with 4 additions and 2 deletions

View File

@ -291,8 +291,10 @@ public class Issue extends Resource {
}
}
if (result == null)
throw new JiraException("Transition was not found.");
if (result == null) {
final String allTransitionNames = Arrays.toString(transitions.toArray());
throw new JiraException("Transition '" + name + "' was not found. Known transitions are:" + allTransitionNames);
}
return result;
}