Skip to content

Commit c1ce649

Browse files
committed
Fix typos in ArchiveExtractor.java error messages
1 parent bf609ec commit c1ce649

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arduino-core/src/cc/arduino/utils/ArchiveExtractor.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public void extract(File archiveFile, File destFolder, int stripPath, boolean ov
164164
while (stripPath > 0) {
165165
slash = name.indexOf("/", slash);
166166
if (slash == -1) {
167-
throw new IOException("Invalid archive: it must contains a single root folder");
167+
throw new IOException("Invalid archive: it must contain a single root folder");
168168
}
169169
slash++;
170170
stripPath--;
@@ -174,7 +174,7 @@ public void extract(File archiveFile, File destFolder, int stripPath, boolean ov
174174

175175
// Strip the common path prefix when requested
176176
if (!name.startsWith(pathPrefix)) {
177-
throw new IOException("Invalid archive: it must contains a single root folder while file " + name + " is outside " + pathPrefix);
177+
throw new IOException("Invalid archive: it must contain a single root folder while file " + name + " is outside " + pathPrefix);
178178
}
179179
name = name.substring(pathPrefix.length());
180180
if (name.isEmpty()) {
@@ -185,7 +185,7 @@ public void extract(File archiveFile, File destFolder, int stripPath, boolean ov
185185
File outputLinkedFile = null;
186186
if (isLink) {
187187
if (!linkName.startsWith(pathPrefix)) {
188-
throw new IOException("Invalid archive: it must contains a single root folder while file " + linkName + " is outside " + pathPrefix);
188+
throw new IOException("Invalid archive: it must contain a single root folder while file " + linkName + " is outside " + pathPrefix);
189189
}
190190
linkName = linkName.substring(pathPrefix.length());
191191
outputLinkedFile = new File(destFolder, linkName);

0 commit comments

Comments
 (0)