Unverified Commit fae63826 authored by daz's avatar daz
Browse files

Fail the build when `arguments` parameter is used

parent 81b4ac77
Loading
Loading
Loading
Loading
+1 −1
Changes for sources/src/deprecation-collector.ts: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ export function recordDeprecation(message: string): void {

export function failOnUseOfRemovedFeature(removalMessage: string, deprecationMessage: string = removalMessage): void {
    const deprecation = new Deprecation(deprecationMessage)
    core.error(`${removalMessage}. See ${deprecation.getDocumentationLink()}`)
    core.setFailed(`${removalMessage}. See ${deprecation.getDocumentationLink()}`)
}

export function getDeprecations(): Deprecation[] {