Override toString() method in Command

Overriding the toString() method provides more human-readable feedback
when a problem occurs, including the version of the plugin if
applicable.
This commit is contained in:
Wesley Wolfe
2012-10-19 15:46:28 -05:00
parent a4314b17b1
commit 7adaf4bb6b
2 changed files with 13 additions and 0 deletions

View File

@@ -350,4 +350,9 @@ public abstract class Command {
}
}
}
@Override
public String toString() {
return getClass().getName() + '(' + name + ')';
}
}