File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ install:
23
23
# install submodules
24
24
- git submodule update --init
25
25
# fixes nodejs/node-gyp#972
26
- - npm install -g npm@latest
26
+ - npm install -g npm@5.7.1
27
27
# install modules
28
28
- npm install -g node-pre-gyp node-pre-gyp-github
29
29
- npm install --build-from-source
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " fasttext" ,
3
- "version" : " 0.2.2 " ,
3
+ "version" : " 0.2.3 " ,
4
4
"description" : " A nodejs binding for fasttext representation and classification" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 1
1
2
2
3
+ #include < iostream>
3
4
#include " nnWorker.h"
4
5
#include < v8.h>
5
6
@@ -9,7 +10,14 @@ void NnWorker::Execute () {
9
10
wrapper_->precomputeWordVectors ();
10
11
result_ = wrapper_->nn (query_, k_);
11
12
} catch (std::string errorMessage) {
13
+ std::cout << " Exception: " << errorMessage << std::endl;
12
14
SetErrorMessage (errorMessage.c_str ());
15
+ } catch (const char * str) {
16
+ std::cout << " Exception: " << str << std::endl;
17
+ SetErrorMessage (str);
18
+ } catch (const std::exception& e) {
19
+ std::cout << " Exception: " << e.what () << std::endl;
20
+ SetErrorMessage (e.what ());
13
21
}
14
22
}
15
23
You can’t perform that action at this time.
0 commit comments