KScript docs
EN

Error codes

KS6020

Text in double quotes with nothing to fill in. Double quotes say that something in the text is filled in ("Hi { $name }"), so a reader looks for it. Text kept as written goes in single quotes: CreateTable(name: 'orders'), $title = 'Report'. The script still runs, so this is a warning; Write 'text' or kscript check --fix changes the quotes. Double quotes stay where only they are read: an import's file (import "lib/x.kscript"), an element's text (Paragraph "...") and a throw message.

Edit this page on GitHub