How to use the fullStack function from verror

Find comprehensive JavaScript verror.fullStack code examples handpicked from public code repositorys.

11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
	mod_assertplus.ok(mod_isError(err), 'err must be an Error');


	var cause = VError.cause(err);


	if (cause) {
		return (err.stack + '\ncaused by: ' + VError.fullStack(cause));
	}


	return (err.stack);
};
fork icon0
star icon0
watch icon1

+ 2 other calls in file

34
35
36
37
38
39
40
41
42
43
// Updating exception metadata in extensions
if (extensions.exception) {
  extensions.exception = _.omit(extensions.exception, VERROR_TRASH_PROPS)

  if (debugMode) {
    extensions.exception.stacktrace = VError.fullStack(realError)
  } else {
    delete extensions.exception.stacktrace
  }
}
fork icon0
star icon0
watch icon0

+ 7 other calls in file