npmjs: add error parsing for missing npm binary
git-svn-id: https://svn.fhem.de/fhem/trunk@19863 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1205,6 +1205,16 @@ m/(?:(\w+?): )?(?:(\w+? \d+): )?(\w+?): [^:]*?No.such.file.or.directory$/i
|
|||||||
$h->{error}{detail} = "<pre>$p</pre>";
|
$h->{error}{detail} = "<pre>$p</pre>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elsif ( $json =~
|
||||||
|
m/(?:(\w+?): )?(?:(\w+? \d+): )?(\w+?): [^:]*?not.found$/im
|
||||||
|
or $json =~
|
||||||
|
m/(?:(\w+?): )?(?:(\w+? \d+): )?(\w+?): [^:]*?No.such.file.or.directory$/im
|
||||||
|
)
|
||||||
|
{
|
||||||
|
$h->{error}{code} = "E404";
|
||||||
|
$h->{error}{summary} = "Not Found - $3 is not installed";
|
||||||
|
$h->{error}{detail} = "<pre>$o</pre>";
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$h->{error}{code} = "E500";
|
$h->{error}{code} = "E500";
|
||||||
$h->{error}{summary} = "Parsing error - " . $@;
|
$h->{error}{summary} = "Parsing error - " . $@;
|
||||||
@@ -1856,7 +1866,7 @@ sub ToDay() {
|
|||||||
"abstract": "Modul zur Bedienung der Node.js Installation und Updates"
|
"abstract": "Modul zur Bedienung der Node.js Installation und Updates"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": "v1.1.1",
|
"version": "v1.1.2",
|
||||||
"release_status": "stable",
|
"release_status": "stable",
|
||||||
"author": [
|
"author": [
|
||||||
"Julian Pawlowski <julian.pawlowski@gmail.com>"
|
"Julian Pawlowski <julian.pawlowski@gmail.com>"
|
||||||
|
|||||||
Reference in New Issue
Block a user