From c1ce649554dd84b75c8c6c0aa419d78d09415dac Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 12 Oct 2015 14:34:52 -0700 Subject: [PATCH] Fix typos in ArchiveExtractor.java error messages --- arduino-core/src/cc/arduino/utils/ArchiveExtractor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arduino-core/src/cc/arduino/utils/ArchiveExtractor.java b/arduino-core/src/cc/arduino/utils/ArchiveExtractor.java index d892e9ec2..1fc007997 100644 --- a/arduino-core/src/cc/arduino/utils/ArchiveExtractor.java +++ b/arduino-core/src/cc/arduino/utils/ArchiveExtractor.java @@ -164,7 +164,7 @@ public class ArchiveExtractor { while (stripPath > 0) { slash = name.indexOf("/", slash); if (slash == -1) { - throw new IOException("Invalid archive: it must contains a single root folder"); + throw new IOException("Invalid archive: it must contain a single root folder"); } slash++; stripPath--; @@ -174,7 +174,7 @@ public class ArchiveExtractor { // Strip the common path prefix when requested if (!name.startsWith(pathPrefix)) { - throw new IOException("Invalid archive: it must contains a single root folder while file " + name + " is outside " + pathPrefix); + throw new IOException("Invalid archive: it must contain a single root folder while file " + name + " is outside " + pathPrefix); } name = name.substring(pathPrefix.length()); if (name.isEmpty()) { @@ -185,7 +185,7 @@ public class ArchiveExtractor { File outputLinkedFile = null; if (isLink) { if (!linkName.startsWith(pathPrefix)) { - throw new IOException("Invalid archive: it must contains a single root folder while file " + linkName + " is outside " + pathPrefix); + throw new IOException("Invalid archive: it must contain a single root folder while file " + linkName + " is outside " + pathPrefix); } linkName = linkName.substring(pathPrefix.length()); outputLinkedFile = new File(destFolder, linkName);