File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ function run (options, callback) {
130
130
if ( data . indexOf ( '401 Unauthorized' ) > - 1 ) {
131
131
activeTunnel . error = 'Invalid credentials. Please supply the correct key/secret obtained from TestingBot.com'
132
132
activeTunnel . close ( )
133
+ } else if ( data . indexOf ( 'minutes left' ) > - 1 ) {
134
+ activeTunnel . error = 'You do not have any minutes left. Please upgrade your account at TestingBot.com'
135
+ activeTunnel . close ( )
133
136
}
134
137
} )
135
138
@@ -154,7 +157,9 @@ function run (options, callback) {
154
157
}
155
158
156
159
activeTunnel . on ( 'exit' , ( code , signal ) => {
157
- logger ( 'Closing TestingBot Tunnel' )
160
+ if ( options . verbose ) {
161
+ logger ( 'Closing TestingBot Tunnel' )
162
+ }
158
163
if ( ! started ) {
159
164
callback ( new Error ( activeTunnel . error ? activeTunnel . error : `Could not start TestingBot Tunnel. Exit code ${ code } signal: ${ signal } ` ) )
160
165
}
Original file line number Diff line number Diff line change 2
2
"author" : " TestingBot <info@testingbot.com> (testingbot.com)" ,
3
3
"name" : " testingbot-tunnel-launcher" ,
4
4
"description" : " A wrapper around TestingBot's Tunnel" ,
5
- "version" : " 1.1.10 " ,
5
+ "version" : " 1.1.11 " ,
6
6
"homepage" : " https://github.com/testingbot/testingbot-tunnel-launcher" ,
7
7
"scripts" : {
8
8
"lint" : " eslint lib/" ,
You can’t perform that action at this time.
0 commit comments