We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82fba89 commit 5d3a3cbCopy full SHA for 5d3a3cb
scripts/buildocaml.js
@@ -22,15 +22,16 @@ function getVersionPrefix() {
22
cached = version.substr(0, version.indexOf("+"));
23
return cached;
24
}
25
+ console.error(`cannot find '${file}'`);
26
27
file = path.join(__dirname, "..", "OCAML_VERSION");
28
if (fs.existsSync(file)) {
29
var version = fs.readFileSync(file, "ascii");
30
31
32
-
33
console.error(`cannot find '${file}'`);
34
+
35
console.error("You should create OCAML_VERSION or ocaml/VERSION file to specify OCaml version like '4.02.3+buckle-master'");
36
console.error("For example, run `opam switch show > OCAML_VERSION`");
37
throw new Error("version file not found");
0 commit comments