Skip to content

Commit

Permalink
Always error with both message and stack trace (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand authored and fiadliel committed Jul 14, 2016
1 parent a832520 commit 0da2ae9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/com/gilt/aws/lambda/AwsLambdaPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ object AwsLambdaPlugin extends AutoPlugin {
case Success(updateFunctionCodeResult) =>
resolvedLambdaName.value -> LambdaARN(updateFunctionCodeResult.getFunctionArn)
case Failure(exception) =>
sys.error(s"Error updating lambda: ${exception.getStackTraceString}")
sys.error(s"Error updating lambda: ${exception.getLocalizedMessage}\n${exception.getStackTraceString}")
}
}).toMap
case Failure(exception) =>
sys.error(s"Error uploading jar to S3 lambda: ${exception.getStackTraceString}")
sys.error(s"Error uploading jar to S3 lambda: ${exception.getLocalizedMessage}\n${exception.getStackTraceString}")
}
}

Expand All @@ -99,7 +99,7 @@ object AwsLambdaPlugin extends AutoPlugin {
}
}
case Failure(exception) =>
sys.error(s"Error upload jar to S3 lambda: ${exception.getLocalizedMessage}")
sys.error(s"Error upload jar to S3 lambda: ${exception.getLocalizedMessage}\n${exception.getStackTraceString}")
}
}

Expand Down

0 comments on commit 0da2ae9

Please sign in to comment.