Skip to content

Commit

Permalink
Merge pull request #4 from theRealRobG/bug/build-failing-on-macos-git…
Browse files Browse the repository at this point in the history
…hub-action

Fix build failing on macOS GitHub action
  • Loading branch information
theRealRobG authored May 15, 2021
2 parents 5fc2806 + 5b2a307 commit fb4f4fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- name: Resolve dependencies
run: swift package resolve
- name: Build
run: swift build -v --enable-test-discovery
run: swift build -v
- name: Run tests
run: swift test -v --enable-test-discovery

run: swift test -v
4 changes: 2 additions & 2 deletions Sources/SCTE35Parser/SpliceInfoSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ public extension SpliceInfoSection {
self.CRC_32 = bitReader.uint32(fromBits: 32)
self.nonFatalErrors = bitReader.nonFatalErrors
} catch {
guard let error = error as? ParserError else { throw error }
throw SCTE35ParserError(error: error, underlyingError: bitReader.nonFatalErrors.first)
guard let parserError = error as? ParserError else { throw error }
throw SCTE35ParserError(error: parserError, underlyingError: bitReader.nonFatalErrors.first)
}
}
}

0 comments on commit fb4f4fa

Please sign in to comment.