Skip to content

Commit

Permalink
Bumping version to 1.27. (#99)
Browse files Browse the repository at this point in the history
* Bumping version to 1.27.

* fixing linter error
  • Loading branch information
glecaros authored Apr 5, 2023
1 parent a3464a2 commit b4d8bfe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
CARBON_VERSION: "1.26.0"
CARBON_VERSION: "1.27.0"

jobs:
linux:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main
pull_request:
env:
CARBON_VERSION: "1.26.0"
CARBON_VERSION: "1.27.0"
jobs:
golangci:
name: lint
Expand Down
2 changes: 1 addition & 1 deletion ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ trigger:
pool:
vmImage: ubuntu-latest
variables:
CARBON_VERSION: '1.26.0'
CARBON_VERSION: '1.27.0'

steps:
- task: GoTool@0
Expand Down
14 changes: 7 additions & 7 deletions common/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ var errorString = map[int]string{
}

func NewCarbonError(errorHandle uintptr) CarbonError {
var error CarbonError
error.Code = getErrorCode(SPXHandle(errorHandle))
error.Message = getErrorMessage(SPXHandle(errorHandle))
var carbonError CarbonError
carbonError.Code = getErrorCode(SPXHandle(errorHandle))
carbonError.Message = getErrorMessage(SPXHandle(errorHandle))
// When the message is empty, construct the error message using the errorHandle value directly.
if error.Message == "" {
codeAsHexString := fmt.Sprintf("0x%0x", error.Code)
error.Message = "Exception with an error code: " + codeAsHexString + " (" + errorString[error.Code] + ")"
if carbonError.Message == "" {
codeAsHexString := fmt.Sprintf("0x%0x", carbonError.Code)
carbonError.Message = "Exception with an error code: " + codeAsHexString + " (" + errorString[carbonError.Code] + ")"
}
return error
return carbonError
}

func (e CarbonError) Error() string {
Expand Down
2 changes: 1 addition & 1 deletion samples/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/Microsoft/cognitive-services-speech-sdk-go/samples

require github.com/Microsoft/cognitive-services-speech-sdk-go v1.26.0
require github.com/Microsoft/cognitive-services-speech-sdk-go v1.27.0

go 1.13

0 comments on commit b4d8bfe

Please sign in to comment.