changer Never return type to Error in ErrorReporter

this resolves warning related to Never type
This commit is contained in:
Ilya Puchka
2017-11-29 23:41:18 +01:00
parent 5878c323a2
commit 27135f3ea3
2 changed files with 7 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ public struct Environment {
do {
return try template.render(context)
} catch {
try errorReporter.report(error: error)
throw errorReporter.reportError(error)
}
}
@@ -66,7 +66,7 @@ public struct Environment {
do {
return try closure()
} catch {
try errorReporter.report(error: error)
throw errorReporter.reportError(error)
}
}