fork/cargo

git clone https://git.julia.blue/fork/cargo

Weihang Lofix(new): Improve quality of package name error messages (#16398)e10429934

master
1.2 KiB34 linesraw
1<svg width="1154px" height="110px" xmlns="http://www.w3.org/2000/svg">
2  <style>
3    .fg { fill: #AAAAAA }
4    .bg { fill: #000000 }
5    .fg-bright-green { fill: #55FF55 }
6    .fg-bright-red { fill: #FF5555 }
7    .container {
8      padding: 0 10px;
9      line-height: 18px;
10    }
11    .bold { font-weight: bold; }
12    tspan {
13      font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
14      white-space: pre;
15      line-height: 18px;
16    }
17  </style>
18
19  <rect width="100%" height="100%" y="0" rx="4.5" class="bg" />
20
21  <text xml:space="preserve" class="container fg">
22    <tspan x="10px" y="28px"><tspan class="fg-bright-green bold">    Creating</tspan><tspan> binary (application) package</tspan>
23</tspan>
24    <tspan x="10px" y="46px"><tspan class="fg-bright-red bold">error</tspan><tspan>: invalid character `.` in package name: `foo.bar`, characters must be Unicode XID characters (numbers, `-`, `_`, or most letters)</tspan>
25</tspan>
26    <tspan x="10px" y="64px"><tspan>note: the directory name is used as the package name</tspan>
27</tspan>
28    <tspan x="10px" y="82px"><tspan>help: to override the package name, pass `--name &lt;pkgname&gt;`</tspan>
29</tspan>
30    <tspan x="10px" y="100px">
31</tspan>
32  </text>
33
34</svg>