Skip to content

Commit f605370

Browse files
committed
Finish 1.3.2
2 parents 2d0fa8b + ebd9b29 commit f605370

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ The err0agent supports: java, javascript, c, c++, c#, python, php, go, typescrip
2727
You will need java either from the JDK (java development kit) or JRE (java runtime environment) version 1.8 or above. See: https://www.oracle.com/java/technologies/downloads/
2828

2929
In stand-alone mode, you can use the err0agent jar to
30-
manage error codes in your project! This assumes that you have built the jar with ```gradlew build```...
30+
manage error codes in your project! This assumes that you have built the jar with ```gradlew build```... or downloaded our latest release
31+
and extracted the file ```err0agent-java_1_8-fat.jar```.
3132

3233
Firstly: to insert codes into your project:
3334

src/main/java/io/err0/client/Main.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ private static GitMetadata populateGitMetadata(final String checkoutDir, final J
100100
if (matcher.find()) {
101101
gitpath = Utils.pathOf(checkoutDir + "/" + matcher.group(1));
102102
}
103+
if (! Files.exists(gitpath) || ! Files.isDirectory(gitpath)) {
104+
System.err.println("[AGENT-000092] Error: cannot find .git directory, err0's docker scripts must be run from the top-level of your git project, not a submodule.");
105+
System.exit(-1);
106+
}
107+
} else if (! Files.exists(gitpath)) {
108+
System.err.println("[AGENT-000093] Error: cannot find .git directory are you at the top-level of your git project?");
109+
System.exit(-1);
103110
}
104111

105112
// find git version etc.
@@ -1353,6 +1360,7 @@ private static boolean analyseWholeProject(final ApiProvider apiProvider, final
13531360

13541361
//final String errorCode = policy.getErrorCodeFormatter().formatErrorCodeOnly(currentToken.errorOrdinal);
13551362

1363+
metaData.addProperty("language", stateItem.parse.language.name());
13561364
metaData.addProperty("type", lastToken.classification.toString());
13571365
if (lastToken.classification == Token.Classification.EXCEPTION_THROW && null != lastToken.exceptionClass) {
13581366
metaData.addProperty("exception_class", lastToken.exceptionClass);

0 commit comments

Comments
 (0)