diff --git a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java index adaa017f9..59d984060 100644 --- a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java +++ b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java @@ -2029,7 +2029,12 @@ private List provisionOndemand( } } } else { - newInstances = ec2.runInstances(riRequest).getReservation().getInstances(); + try { + newInstances = ec2.runInstances(riRequest).getReservation().getInstances(); + } catch (AmazonEC2Exception e) { + logProvisionInfo("Error while trying to run instances for reserved capacity: " + e.getMessage()); + throw e; + } } // Have to create a new instance