Skip to content

Commit 41e6550

Browse files
author
Lenny Halseth
committed
Update travis build config and change response error handling during java processing.
1 parent e4af774 commit 41e6550

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ language: scala
22
scala:
33
- 2.10.4
44
jdk:
5-
- openjdk7
65
- oraclejdk8
76
- openjdk8
8-
- oraclejdk9
97
dist: trusty
108
sudo: false
119
cache:

codepulse/src/main/scala/com/secdec/codepulse/tracer/ProjectFileUploadHandler.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ class ProjectFileUploadHandler(projectManager: ProjectManager) extends RestHelpe
132132

133133
def fallbackResponse(box: Box[LiftResponse]) = box match {
134134
case Full(resp) => resp
135-
case _ => {
136-
RedirectWithState("/", RedirectState(() => NotFoundResponse("An error occurred while processing data.")))
137-
}
138-
// case Empty => NotFoundResponse("an unknown error occurred")
139-
// case Failure(msg, _, _) => {NotFoundResponse(msg)
135+
case Empty => NotFoundResponse("an unknown error occurred")
136+
case Failure(msg, _, _) => NotFoundResponse(msg)
140137
}
141138
}

0 commit comments

Comments
 (0)