Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Merge requests
!1265
[fix] wrong options throwed as error when forgoten with gen-* cmd.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[fix] wrong options throwed as error when forgoten with gen-* cmd.
fix_error_message_for_gen
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Moul
requested to merge
fix_error_message_for_gen
into
dev
7 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
04b19d17
1 commit,
7 years ago
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
app/modules/prover/index.ts
+
3
−
3
Options
@@ -145,13 +145,13 @@ function generateAndSend(program:any, difficulty:string, server:Server, getGener
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
!
program
.
submitLocal
)
{
if
(
!
program
.
submitHost
)
{
throw
'
Option --submit
H
ost is required.
'
throw
'
Option --submit
-h
ost is required.
'
}
if
(
!
program
.
submitPort
)
{
throw
'
Option --submit
P
ort is required.
'
throw
'
Option --submit
-p
ort is required.
'
}
if
(
isNaN
(
parseInt
(
program
.
submitPort
)))
{
throw
'
Option --submit
P
ort must be a number.
'
throw
'
Option --submit
-p
ort must be a number.
'
}
}
async
.
waterfall
([
Loading