Skip to content

Commit

Permalink
change Error
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Jan 20, 2024
1 parent c635384 commit f29a4ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class StepScalingPolicy extends Construct {
}

if (props.datapointsToAlarm !== undefined && !Token.isUnresolved(props.datapointsToAlarm) && props.datapointsToAlarm < 1) {
throw new RangeError(`datapointsToAlarm cannot be less than 1, got: ${props.datapointsToAlarm}`);
throw new Error(`datapointsToAlarm cannot be less than 1, got: ${props.datapointsToAlarm}`);
}

const adjustmentType = props.adjustmentType || AdjustmentType.CHANGE_IN_CAPACITY;
Expand Down

0 comments on commit f29a4ce

Please sign in to comment.