Should build fail if publishRelease
fail because Sentry instance is down ?
#585
Replies: 6 comments 2 replies
-
I think you might be able to do that already using the /**
* When a CLI error occurs, the plugin will call this function.
*
* By default, it will call `invokeErr()`, thereby stopping Webpack
* compilation. To allow compilation to continue and log a warning instead,
* set this to
* (err, invokeErr, compilation) => {
* compilation.warnings.push('Sentry CLI Plugin: ' + err.message)
* }
*
* Note: `compilation` is typed as `unknown` in order to preserve
* compatibility with both Webpack 4 and Webpack 5 types, If you need the
* correct type, in Webpack 4 use `compilation.Compilation` and in Webpack 5
* use `Compilation`.
*/
errorHandler?: (
err: Error,
invokeErr: () => void,
compilation: unknown
) => void; BTW. There is also this Nuxt issue that causes Sentry errors during publishing to be hidden: nuxt/nuxt#21284 |
Beta Was this translation helpful? Give feedback.
-
@rchl Thanks for the tip, will try ! |
Beta Was this translation helpful? Give feedback.
-
I was not able to make it work.
And
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@rchl The only possibility I didn't try I guess 😅 |
Beta Was this translation helpful? Give feedback.
-
Maybe this could be in nuxt/sentry documentation.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Should build fail if
publishRelease
fail because Sentry instance is down ?I'm trying to deploy my app, and our self-hosted Sentry is currently down.
I can't deploy because I have
publishRelease: true
which fails.Should we have an option to ignore this is complete the build ?
Beta Was this translation helpful? Give feedback.
All reactions