This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new cca09ad Include exception class in failure message from ArtifactStore
(#4065)
cca09ad is described below
commit cca09ad8915f65208872c058bbe6c48e42c3dbcc
Author: Chetan Mehrotra <[email protected]>
AuthorDate: Fri Oct 12 15:49:01 2018 +0530
Include exception class in failure message from ArtifactStore (#4065)
---
common/scala/src/main/scala/whisk/core/database/StoreUtils.scala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/scala/src/main/scala/whisk/core/database/StoreUtils.scala
b/common/scala/src/main/scala/whisk/core/database/StoreUtils.scala
index f6351d1..d901fde 100644
--- a/common/scala/src/main/scala/whisk/core/database/StoreUtils.scala
+++ b/common/scala/src/main/scala/whisk/core/database/StoreUtils.scala
@@ -40,7 +40,8 @@ private[database] object StoreUtils {
ec: ExecutionContext): Future[T] = {
f.onFailure({
case _: ArtifactStoreException => // These failures are intentional and
shouldn't trigger the catcher.
- case x => transid.failed(this, start,
failureMessage(x), ErrorLevel)
+ case x =>
+ transid.failed(this, start, s"${failureMessage(x)}
[${x.getClass.getSimpleName}]", ErrorLevel)
})
f
}