Skip to content

Commit

Permalink
Fix an exception in the Update-ApplicationSubmission, Update-Applicat…
Browse files Browse the repository at this point in the history
…ionFlightSubmission, and Update-InAppProductSubmission that occurs when the user specifies a -SubmissionId but the submission is not in a 'PendingCommit' state.

While creating the exception message to throw, we forgot a '$' character and so PowerShell cannot interpret the sub-expression in the message.
  • Loading branch information
Daniel Belcher committed Jan 3, 2018
1 parent 4e60c5d commit 06d1fe4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion StoreBroker/StoreBroker.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
CompanyName = 'Microsoft Corporation'
Copyright = 'Copyright (C) Microsoft Corporation. All rights reserved.'

ModuleVersion = '1.12.2'
ModuleVersion = '1.12.3'
Description = 'Provides command-line access to the Windows Store Submission REST API.'

RootModule = 'StoreIngestionApi'
Expand Down
2 changes: 1 addition & 1 deletion StoreBroker/StoreIngestionApplicationApi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ function Update-ApplicationSubmission
{
$output = @()
$output += "We can only modify a submission that is in the '$script:keywordPendingCommit' state."
$output += "The submission that you requested to modify ($SubmissionId) is in '$(submissionToUpdate.status)' state."
$output += "The submission that you requested to modify ($SubmissionId) is in '$($submissionToUpdate.status)' state."

$newLineOutput = ($output -join [Environment]::NewLine)
Write-Log $newLineOutput -Level Error
Expand Down
2 changes: 1 addition & 1 deletion StoreBroker/StoreIngestionFlightingApi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ function Update-ApplicationFlightSubmission
{
$output = @()
$output += "We can only modify a submission that is in the '$script:keywordPendingCommit' state."
$output += "The submission that you requested to modify ($SubmissionId) is in '$(submissionToUpdate.status)' state."
$output += "The submission that you requested to modify ($SubmissionId) is in '$($submissionToUpdate.status)' state."

$newLineOutput = ($output -join [Environment]::NewLine)
Write-Log $newLineOutput -Level Error
Expand Down
2 changes: 1 addition & 1 deletion StoreBroker/StoreIngestionIapApi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ function Update-InAppProductSubmission
{
$output = @()
$output += "We can only modify a submission that is in the '$script:keywordPendingCommit' state."
$output += "The submission that you requested to modify ($SubmissionId) is in '$(submissionToUpdate.status)' state."
$output += "The submission that you requested to modify ($SubmissionId) is in '$($submissionToUpdate.status)' state."

$newLineOutput = ($output -join [Environment]::NewLine)
Write-Log $newLineOutput -Level Error
Expand Down

0 comments on commit 06d1fe4

Please sign in to comment.