Skip to content

Commit

Permalink
Merge pull request #69 from civitaspo/develop
Browse files Browse the repository at this point in the history
v0.2.5
  • Loading branch information
civitaspo authored Jul 29, 2019
2 parents c280ef6 + 5bc5f1e commit 5e88785
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.2.5 (2019-07-29)
==================

* [Fix] Catch any initialization exception and re-throw as `ConfigException`

0.2.4 (2019-07-29)
==================

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _export:
repositories:
- https://jitpack.io
dependencies:
- pro.civitaspo:digdag-operator-athena:0.2.4
- pro.civitaspo:digdag-operator-athena:0.2.5
athena:
auth_method: profile

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'pro.civitaspo'
version = '0.2.4'
version = '0.2.5'

def digdagVersion = '0.9.37'
def awsSdkVersion = "1.11.587"
Expand Down
2 changes: 1 addition & 1 deletion example/example.dig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _export:
- file://${repos}
# - https://jitpack.io
dependencies:
- pro.civitaspo:digdag-operator-athena:0.2.4
- pro.civitaspo:digdag-operator-athena:0.2.5
athena:
auth_method: profile
value: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package pro.civitaspo.digdag.plugin.athena
import java.lang.reflect.Constructor
import java.util.{Arrays => JArrays, List => JList}

import io.digdag.client.config.Config
import io.digdag.client.config.{Config, ConfigException}
import io.digdag.spi.{Operator, OperatorContext, OperatorFactory, OperatorProvider, Plugin, TemplateEngine}
import javax.inject.Inject
import pro.civitaspo.digdag.plugin.athena.add_partition.AthenaAddPartitionOperator
Expand Down Expand Up @@ -62,7 +62,12 @@ object AthenaPlugin
classOf[OperatorContext],
classOf[Config],
classOf[TemplateEngine])
constructor.newInstance(operatorName, context, systemConfig, templateEngine)
try {
constructor.newInstance(operatorName, context, systemConfig, templateEngine)
}
catch {
case e: Throwable => throw new ConfigException(e)
}
}
}
}
Expand Down

0 comments on commit 5e88785

Please sign in to comment.