[Pkg-mozext-commits] [itsalltext] 390/459: Fix "...exited with undefined" message
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit f632fb541955ae136631a36b70c19c395f8c2e29
Author: Christian Höltje <docwhat at gerf.org>
Date: Thu Sep 8 17:35:36 2011 -0400
Fix "...exited with undefined" message
Windows apparently doesn't support exitValue.
Fixes issue #12
---
src/chrome/content/cacheobj.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 6ba182d..eefb73c 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -392,7 +392,7 @@ CacheObj.prototype.edit = function (extension, clobber) {
observe: function (subject, topic, data) {
// Topic moved as last argument to callbacks since we don't need it (we already know what it is)
if (topic==='process-finished') {
- if (subject.exitValue != 0) {
+ if (typeof(subject.exitValue) === 'undefined' && subject.exitValue != 0) {
var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService);
prompts.alert(null, "Editor exited with status of " + subject.exitValue,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list