Skip to content

Commit 5e88785

Browse files
authored
Merge pull request #69 from civitaspo/develop
v0.2.5
2 parents c280ef6 + 5bc5f1e commit 5e88785

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
0.2.5 (2019-07-29)
2+
==================
3+
4+
* [Fix] Catch any initialization exception and re-throw as `ConfigException`
5+
16
0.2.4 (2019-07-29)
27
==================
38

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _export:
1515
repositories:
1616
- https://jitpack.io
1717
dependencies:
18-
- pro.civitaspo:digdag-operator-athena:0.2.4
18+
- pro.civitaspo:digdag-operator-athena:0.2.5
1919
athena:
2020
auth_method: profile
2121

Diff for: build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = 'pro.civitaspo'
8-
version = '0.2.4'
8+
version = '0.2.5'
99

1010
def digdagVersion = '0.9.37'
1111
def awsSdkVersion = "1.11.587"

Diff for: example/example.dig

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _export:
44
- file://${repos}
55
# - https://jitpack.io
66
dependencies:
7-
- pro.civitaspo:digdag-operator-athena:0.2.4
7+
- pro.civitaspo:digdag-operator-athena:0.2.5
88
athena:
99
auth_method: profile
1010
value: 5

Diff for: src/main/scala/pro/civitaspo/digdag/plugin/athena/AthenaPlugin.scala

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package pro.civitaspo.digdag.plugin.athena
44
import java.lang.reflect.Constructor
55
import java.util.{Arrays => JArrays, List => JList}
66

7-
import io.digdag.client.config.Config
7+
import io.digdag.client.config.{Config, ConfigException}
88
import io.digdag.spi.{Operator, OperatorContext, OperatorFactory, OperatorProvider, Plugin, TemplateEngine}
99
import javax.inject.Inject
1010
import pro.civitaspo.digdag.plugin.athena.add_partition.AthenaAddPartitionOperator
@@ -62,7 +62,12 @@ object AthenaPlugin
6262
classOf[OperatorContext],
6363
classOf[Config],
6464
classOf[TemplateEngine])
65-
constructor.newInstance(operatorName, context, systemConfig, templateEngine)
65+
try {
66+
constructor.newInstance(operatorName, context, systemConfig, templateEngine)
67+
}
68+
catch {
69+
case e: Throwable => throw new ConfigException(e)
70+
}
6671
}
6772
}
6873
}

0 commit comments

Comments
 (0)