{master} tweak error messages
This commit is contained in:
parent
a6161ea8cc
commit
129b10bc5b
|
@ -137,7 +137,7 @@ private object RelayFetch {
|
||||||
private def dgtOneFile(file: String, max: Int): Fu[MultiPgn] =
|
private def dgtOneFile(file: String, max: Int): Fu[MultiPgn] =
|
||||||
httpGet(file).flatMap {
|
httpGet(file).flatMap {
|
||||||
case res if res.status == 200 => fuccess(splitPgn(res.body, max))
|
case res if res.status == 200 => fuccess(splitPgn(res.body, max))
|
||||||
case res => fufail(s"Cannot fetch $file (error ${res.status})")
|
case res => fufail(s"[${res.status}] $file")
|
||||||
}
|
}
|
||||||
|
|
||||||
import play.api.libs.json._
|
import play.api.libs.json._
|
||||||
|
|
|
@ -477,7 +477,7 @@ export default class AnalyseCtrl {
|
||||||
addNode(node: Tree.Node, path: Tree.Path) {
|
addNode(node: Tree.Node, path: Tree.Path) {
|
||||||
const newPath = this.tree.addNode(node, path);
|
const newPath = this.tree.addNode(node, path);
|
||||||
if (!newPath) {
|
if (!newPath) {
|
||||||
console.log('Cannot addNode', node, path);
|
console.log("Can't addNode", node, path);
|
||||||
return this.redraw();
|
return this.redraw();
|
||||||
}
|
}
|
||||||
this.jump(newPath);
|
this.jump(newPath);
|
||||||
|
|
Loading…
Reference in a new issue