Skip to content

Commit 5a46577

Browse files
committed
feat(arm): use architecture replace os/platform for tips
1 parent 20e96fa commit 5a46577

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

framework/src/main/java/org/tron/program/DBConvert.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ public static org.iq80.leveldb.Options newDefaultLevelDbOptions() {
9393

9494
public static void main(String[] args) {
9595
if (Arch.isArm64()) {
96-
String tips = String.format("This tool is not supported on %s platform.", Arch.getOsArch());
96+
String tips = String.format("This tool is not supported on %s architecture.",
97+
Arch.getOsArch());
9798
System.err.println(tips);
9899
logger.error(tips);
99100
return;

platform/src/main/java/common/org/tron/common/arch/Arch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static boolean isArm64() {
6060

6161
public static void throwUnsupportedArm64Exception() {
6262
if (isArm64()) {
63-
throw new UnsupportedOperationException("Unsupported OS: " + getOsArch());
63+
throw new UnsupportedOperationException("unsupported on " + getOsArch() + " architecture");
6464
}
6565
}
6666
}

plugins/src/main/java/org/tron/plugins/DbConvert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public class DbConvert implements Callable<Integer> {
5959
@Override
6060
public Integer call() throws Exception {
6161
if (Arch.isArm64()) {
62-
String tips = String.format(
63-
"This command is not supported on %s platform.", Arch.getOsArch());
62+
String tips = String.format("This command is not supported on %s architecture.",
63+
Arch.getOsArch());
6464
spec.commandLine().getErr().println(spec.commandLine().getColorScheme().errorText(tips));
6565
logger.error(tips);
6666
return 1;

0 commit comments

Comments
 (0)