Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #892 from Bananeweizen/patch-1
Browse files Browse the repository at this point in the history
Fix typos in user visible output
  • Loading branch information
DayS committed Apr 6, 2014
2 parents 891b419 + 22fe246 commit 4e08a3e
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -91,8 +91,8 @@ private void checkApiAndCoreVersions() throws VersionMismatchException {
String coreVersion = getAAProcessorVersion();

if (!apiVersion.equals(coreVersion)) {
LOGGER.error("AndroidAnnotation version for API ({}) and core ({}) doesn't match. Please check your classpath", apiVersion, coreVersion);
throw new VersionMismatchException("AndroidAnnotation version for API (" + apiVersion + ") and core (" + coreVersion + ") doesn't match. Please check your classpath");
LOGGER.error("AndroidAnnotations version for API ({}) and core ({}) doesn't match. Please check your classpath", apiVersion, coreVersion);
throw new VersionMismatchException("AndroidAnnotations version for API (" + apiVersion + ") and core (" + coreVersion + ") doesn't match. Please check your classpath");
}
}

Expand Down Expand Up @@ -131,7 +131,7 @@ private void loadPropertyFile() throws FileNotFoundException {
URL url = getClass().getClassLoader().getResource(filename);
properties.load(url.openStream());
} catch (Exception e) {
LOGGER.error("Core property file {} couldn't be parse");
LOGGER.error("Core property file {} couldn't be parsed");
throw new FileNotFoundException("Core property file " + filename + " couldn't be parsed.");
}
}
Expand All @@ -142,7 +142,7 @@ private void loadApiPropertyFile() throws FileNotFoundException {
URL url = EActivity.class.getClassLoader().getResource(filename);
propertiesApi.load(url.openStream());
} catch (Exception e) {
LOGGER.error("API property file {} couldn't be parse");
LOGGER.error("API property file {} couldn't be parsed");
throw new FileNotFoundException("API property file " + filename + " couldn't be parsed. Please check your classpath and verify that AA-API's version is at least 3.0");
}
}
Expand Down Expand Up @@ -265,9 +265,9 @@ private void handleException(Set<? extends TypeElement> annotations, RoundEnviro
Iterator<? extends TypeElement> iterator = annotations.iterator();
if (iterator.hasNext()) {
Element element = roundEnv.getElementsAnnotatedWith(iterator.next()).iterator().next();
LOGGER.error("Something went wront : {}", element, errorMessage);
LOGGER.error("Something went wrong: {}", element, errorMessage);
} else {
LOGGER.error("Something went wront : {}", errorMessage);
LOGGER.error("Something went wrong: {}", errorMessage);
}
}

Expand Down

0 comments on commit 4e08a3e

Please sign in to comment.