Closed Taitava closed 2 years ago
Fixed, but I haven't yet decided if I'll make a patch release 0.12.1
for this, or will I release it in 0.13.0
. If other, more prominent bugs are found, then I might make 0.12.1
, but otherwise this can wait till 0.13.0
.
Will be released in 0.13.0
0.12.1
.
When
{{event_yaml_value:non_existing_property}}
is used in a shell command that is executed using the File menu event, the following error message is displayed:The error message is wrong. It should be:
Or:
The cause
When
Variable.getValue()
generates error messages, it does not pass anSC_Event
instance toVariable.generateValue()
:https://github.com/Taitava/obsidian-shellcommands/blob/cc594bf58407849cb5e32a6ba6686ec248382e9c/src/variables/Variable.ts#L103
This leads
Variable.generateValue()
to report a different error. It's easy to fix.CHANGELOG.md
.