62 Commits

Author SHA1 Message Date
Mariusz Nowak
87faf71920
Clear confusing wording 2019-08-06 22:00:03 +02:00
Mariusz Nowak
ae77dbeaa0
Recognize YAMLException as user error 2019-08-06 14:14:07 +02:00
Mariusz Nowak
b3f06b8b1f
Do not duplicate error message output 2019-08-06 14:14:04 +02:00
Mariusz Nowak
7ce351e084
Log uncaught exceptions 2019-08-06 13:44:43 +02:00
Mariusz Nowak
406d4c713a
Expose stack trace for non user errors 2019-08-06 13:44:15 +02:00
Mariusz Nowak
80e6ad5fb7
Recognize isUserError variable 2019-08-06 13:44:15 +02:00
Mariusz Nowak
ee091fb91c
Show SLS_DEBUG info only when it's not used 2019-08-06 13:44:14 +02:00
Mariusz Nowak
18dfb69e31
Improve non-error exception handling 2019-08-06 13:44:10 +02:00
Mariusz Nowak
5e57ad365e
Improve variable name 2019-08-06 13:02:01 +02:00
Mariusz Nowak
77432a0e07
Improve variable name 2019-08-06 13:02:01 +02:00
Mariusz Nowak
11cb305329
Improve variable name 2019-08-06 13:02:00 +02:00
Mariusz Nowak
f8fc8d9730
Ensure to not crash with logged error 2019-07-19 17:14:03 +02:00
Mariusz Nowak
c8709af12e
Do not do forced process exits 2019-07-18 19:36:07 +02:00
Philipp Muens
084cee4538
Merge pull request #6345 from domcorvasce/master
Add SLS_NO_WARNINGS env var
2019-07-16 12:49:39 +02:00
Dom Corvasce
38f42dfb5c Rename SLS_NO_WARNINGS to SLS_WARNING_DISABLE 2019-07-10 11:52:05 +02:00
Daniel Schep
dafbf82056 prettier & dep bump 2019-07-08 16:20:07 -04:00
Dom Corvasce
508ed78442 Add SLS_NO_WARNINGS to hide warnings 2019-07-08 18:27:16 +02:00
Daniel Schep
9559afbc39 Merge remote-tracking branch 'origin/master' into sfe-version-info 2019-07-08 12:10:17 -04:00
Daniel Schep
92bd3fd814 SFE plugin & sdk version info
in both `--version` and error output
2019-07-05 14:58:13 -04:00
Mariusz Nowak
e11cc2c51b
Ensure to expose non-errors in informative way 2019-06-28 15:19:53 +02:00
Mariusz Nowak
223a7d845e
Whitespace 2019-06-28 14:51:06 +02:00
Mariusz Nowak
e6ae8983de
Fix lint issues after prettification 2019-06-26 12:43:01 +02:00
Mariusz Nowak
4944f471b1
Prettify 2019-06-26 12:43:01 +02:00
Dave Nicolson
9d26b00ddb
Align error logging length 2019-03-18 11:52:59 +01:00
Erik Erikson
0b97b74be4 Improve messaging and formatting of pending promise warnings
Add explanatory text:
```
This can result from latent connections but may represent a cyclic 
variable dependency
```

Also, rather than messages such as:
```
Serverless Information ----------------------------------

##########################################################################################
 
 Serverless Information ----------------------------------
 
 # 0: 0 of 2 promises have settled
 
 Serverless Information ----------------------------------
 
 # 0: 2 unsettled promises:
 
 Serverless Information ----------------------------------
 
 # 0:   foo waited on by: ${foo:}
 
 Serverless Information ----------------------------------
 
 # 0:   foo waited on by: ${foo:}
 
 Serverless Information ----------------------------------
 
##########################################################################################
```

Collate the message to read like:
```
Serverless Information ----------------------------------

##########################################################################################
 # 0: 0 of 2 promises have settled
 # 0: 2 unsettled promises:
 # 0:   foo waited on by: ${foo:}
 # 0:   foo waited on by: ${foo:}
 # This can result from latent connections but may represent a cyclic 
variable dependency
##########################################################################################
```
2018-07-23 17:03:34 -07:00
David Wells
88b0f3ad3f
Update Error.js 2018-03-27 16:22:25 -07:00
Alexey Kotlyarov
d5dc0cbf4b Do not explicitly color messages in white
On white background terminals, white text is unreadable. Use the default
terminal color instead.

Fixes #4673
2018-01-29 19:33:35 +11:00
davidwells
49bb502def clean up logic 2017-05-26 17:00:52 -07:00
davidwells
dd6bd18df8 remove config require 2017-05-26 16:35:34 -07:00
davidwells
f841739416 check if sentry installed before calling 2017-05-26 16:35:14 -07:00
davidwells
37334c493c update error tracking 2017-05-26 16:17:59 -07:00
davidwells
32bd714d43 update sentry 2017-05-25 17:17:20 -07:00
davidwells
ec45c075f8 fix lint 2017-05-25 13:58:31 -07:00
davidwells
3d5f2565bc update linting 2017-05-25 13:58:31 -07:00
davidwells
ffa6235112 manually call raven on error 2017-05-25 13:58:31 -07:00
davidwells
921e599bd1 add sentry error tracking 2017-05-25 13:54:18 -07:00
Philipp Muens
96b135b7e7 Remove slightly misleading error message 2017-03-17 11:11:22 +01:00
davidwells
da220cc826 add forums and chat links to errors 2017-03-16 14:57:00 -07:00
Erik Erikson
7376fc0dff Merge branch 'master' into allow-self-reference
# Conflicts:
#	lib/classes/Error.js
2017-02-08 15:51:57 -08:00
Erik Erikson
079d964908 Add Warning Messages for Unresolvable Variables
1. define new `logWarning` method in Error class and consolidate message formatting for consistency.
2. use new `logWarning` to inform users if a variable cannot be resolved.
2017-02-08 15:40:31 -08:00
Andrey Tserkus
ffd6152de0 cover Error with tests; rename SError export to ServerlessError 2017-01-31 01:50:07 -08:00
Philipp Muens
59234b13ce Update error message according to feedback 2016-11-22 15:25:44 +01:00
Philipp Muens
c1a723436a Update SLS_DEBUG info message 2016-11-22 15:03:28 +01:00
Philipp Muens
46eaf0dabd Fix typo in environment error message 2016-10-24 10:47:05 +02:00
horike37
264cbff6c2 Add newline on error message 2016-10-09 13:20:08 +09:00
Philipp Muens
d5d726d18f Merge pull request #2122 from horike37/issue-2109
add Node version and Serverless version in CLI errors
2016-10-03 18:08:00 -07:00
horike37
26b2dd7119 fixed typo 2016-10-04 09:03:29 +09:00
horike37
adcac0a697 Add OS info 2016-10-02 11:51:26 +09:00
David Tanner
1a8b94cc4f Upping code coverage.
Found some unused code when looking for throttling errors, added functionality to get code from SDK errors.
Added tests to cover functionality.
Fixed prefix to be serverless/{serviceName}/{stage}
2016-09-22 15:55:52 -06:00
horike37
e54ec4d23e add Node version and Serverless version in CLI errors 2016-09-14 07:53:01 +09:00