Skip to content

Commit 08b3665

Browse files
oguzkocerRynaard Burger
authored andcommitted
Add the branch information to the 'this is not a release branch' error
1 parent 7ff91d8 commit 08b3665

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_completecodefreeze_prechecks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def self.run(params)
77
require_relative '../../helper/android/android_version_helper'
88
require_relative '../../helper/android/android_git_helper'
99

10-
UI.user_error!('This is not a release branch. Abort.') unless other_action.git_branch.start_with?('release/')
10+
UI.user_error!("Current branch - '#{other_action.git_branch}' - is not a release branch. Abort.") unless other_action.git_branch.start_with?('release/')
1111

1212
version = Fastlane::Helper::Android::VersionHelper.get_public_version
1313
message = "Completing code freeze for: #{version}\n"

lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_completecodefreeze_prechecks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def self.run(params)
77
require_relative '../../helper/ios/ios_version_helper'
88
require_relative '../../helper/ios/ios_git_helper'
99

10-
UI.user_error!('This is not a release branch. Abort.') unless other_action.git_branch.start_with?('release/')
10+
UI.user_error!("Current branch - '#{other_action.git_branch}' - is not a release branch. Abort.") unless other_action.git_branch.start_with?('release/')
1111

1212
version = Fastlane::Helper::Ios::VersionHelper.get_public_version
1313
message = "Completing code freeze for: #{version}\n"

0 commit comments

Comments
 (0)