Skip to content

Commit

Permalink
fixes #22
Browse files Browse the repository at this point in the history
  • Loading branch information
rmpestano committed Jul 19, 2015
1 parent b9a7f92 commit 857927d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.github.cukedoctor.config.CukedoctorConfig;

import static com.github.cukedoctor.util.Constants.newLine;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Result {

Expand Down Expand Up @@ -37,7 +39,7 @@ public void setDuration(Long duration) {
public String getErrorMessage() {
if(error_message != null){
if(error_message.length() > CukedoctorConfig.ERROR_MESSAGE_SIZE){
error_message = error_message.substring(0,CukedoctorConfig.ERROR_MESSAGE_SIZE) + "...";
error_message = error_message.substring(0,CukedoctorConfig.ERROR_MESSAGE_SIZE) + "..."+newLine();
}
}
return error_message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
public abstract class CukedoctorConfig {

public static final int ERROR_MESSAGE_SIZE = getProperty("ERROR_MESSAGE_SIZE",Integer.class) == null ? 350 : getProperty("ERROR_MESSAGE_SIZE",Integer.class);
public static final int ERROR_MESSAGE_SIZE = getProperty("ERROR_MESSAGE_SIZE",Integer.class) == null ? 400 : getProperty("ERROR_MESSAGE_SIZE",Integer.class);
public static final String DOCUMENT_TITLE= getProperty("DOCUMENT_TITLE") == null ? "Documentation" : getProperty("DOCUMENT_TITLE");


Expand Down

0 comments on commit 857927d

Please sign in to comment.