Skip to content

Commit

Permalink
sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 7, 2017
1 parent 5f0c704 commit 687e524
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/io/jare/tk/TkApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.takes.facets.fork.TkMethods;
import org.takes.facets.forward.TkForward;
import org.takes.misc.Opt;
import org.takes.misc.Sprintf;
import org.takes.rs.RsWithBody;
import org.takes.rs.RsWithStatus;
import org.takes.rs.RsWithType;
Expand Down Expand Up @@ -84,7 +85,7 @@ public TkApp(final Base base) throws IOException {
new RsWithType(
new RsWithBody(
new RsWithStatus(req.code()),
String.format(
new Sprintf(
"Please, submit this stacktrace to GitHub and we'll try to help: https://github.com/yegor256/jare/issues\n\n%s",
ExceptionUtils.getStackTrace(
req.throwable()
Expand Down Expand Up @@ -153,10 +154,10 @@ public TkApp(final Base base) throws IOException {
)
)
),
String.format(
new Sprintf(
"X-Jare-Revision: %s",
Manifests.read("Jare-Revision")
),
).toString(),
"Vary: Cookie"
)
);
Expand Down

0 comments on commit 687e524

Please sign in to comment.