mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
small refactorings
This commit is contained in:
@@ -97,7 +97,7 @@ function renameToken(etapiTokenId, newName) {
|
||||
const etapiToken = becca.getEtapiToken(etapiTokenId);
|
||||
|
||||
if (!etapiToken) {
|
||||
throw new Error(`Token ${etapiTokenId} does not exist`);
|
||||
throw new Error(`Token '${etapiTokenId}' does not exist`);
|
||||
}
|
||||
|
||||
etapiToken.name = newName;
|
||||
|
||||
Reference in New Issue
Block a user