File tree 4 files changed +3
-7
lines changed
4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const argv = yargs
23
23
. version ( package . version ) . alias ( 'version' , 'v' )
24
24
. options ( {
25
25
source : {
26
- alias : [ 's' ] ,
26
+ alias : 's' ,
27
27
description : '<proto-file-source-url>' ,
28
28
requiresArg : true ,
29
29
default : originProtoPath ,
@@ -33,8 +33,7 @@ const argv = yargs
33
33
const urlObject = new URL ( arg ) ;
34
34
return urlObject ;
35
35
} catch ( e ) {
36
- // throw new Error(`Error: ${arg} is not a valid URL path`);
37
- throw e ;
36
+ throw new Error ( `Error: ${ arg } is not a valid URL path` ) ;
38
37
}
39
38
}
40
39
} ,
@@ -90,7 +89,6 @@ function fetchProto () {
90
89
} )
91
90
. catch ( ( error ) => {
92
91
spinner . fail ( `Error connecting to: ${ error . config . url } ` ) ;
93
- // shell.echo(`Error connecting to: ${error.config.url}`);
94
92
if ( error . response ) {
95
93
// The request was made and the server responded with a status code out of range 2xx
96
94
shell . echo ( `${ error . response . status } - ${ error . response . statusText } ` ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const argv = yargs
23
23
. version ( package . version ) . alias ( 'version' , 'v' )
24
24
. options ( {
25
25
input : {
26
- alias : [ 'i' ] ,
26
+ alias : 'i' ,
27
27
description : '<input-proto-path>' ,
28
28
requiresArg : true ,
29
29
default : originProtoPath ,
Original file line number Diff line number Diff line change 1
1
export const environment = {
2
2
production : true ,
3
- // metricsEndpoint: 'ws://localhost:8080/metrics'
4
3
metricsEndpoint : 'ws://localhost:3000' ,
5
4
microservicesEndpoint : '//localhost:8080/microservices'
6
5
} ;
Original file line number Diff line number Diff line change 5
5
6
6
export const environment = {
7
7
production : false ,
8
- // metricsEndpoint: 'ws://localhost:8080/metrics'
9
8
metricsEndpoint : 'ws://localhost:3000' ,
10
9
microservicesEndpoint : '//localhost:8080/microservices'
11
10
} ;
You can’t perform that action at this time.
0 commit comments