{master} tweak error messages
parent
a6161ea8cc
commit
129b10bc5b
|
@ -137,7 +137,7 @@ private object RelayFetch {
|
|||
private def dgtOneFile(file: String, max: Int): Fu[MultiPgn] =
|
||||
httpGet(file).flatMap {
|
||||
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._
|
||||
|
|
|
@ -477,7 +477,7 @@ export default class AnalyseCtrl {
|
|||
addNode(node: Tree.Node, path: Tree.Path) {
|
||||
const newPath = this.tree.addNode(node, path);
|
||||
if (!newPath) {
|
||||
console.log('Cannot addNode', node, path);
|
||||
console.log("Can't addNode", node, path);
|
||||
return this.redraw();
|
||||
}
|
||||
this.jump(newPath);
|
||||
|
|
Loading…
Reference in New Issue