Bug 1278403 - Clarify crash message in case anyone unfamiliar runs into this. - r=jrmuizel draft
authorJeff Gilbert <jgilbert@mozilla.com>
Mon, 20 Jun 2016 20:14:11 -0700
changeset 380212 170a27920b343bf234ea9df6e552f306a74ea915
parent 379691 d8574550e53833a6b30eaffbc8b4bb825d0a87a7
child 523672 d92567b05c0caeb9012af4f2786e08563c65259e
push id21165
push userbmo:jgilbert@mozilla.com
push dateTue, 21 Jun 2016 03:14:18 +0000
reviewersjrmuizel
bugs1278403
milestone50.0a1
Bug 1278403 - Clarify crash message in case anyone unfamiliar runs into this. - r=jrmuizel MozReview-Commit-ID: KfLv9fpZyvE
gfx/gl/GLContext.h
--- a/gfx/gl/GLContext.h
+++ b/gfx/gl/GLContext.h
@@ -753,18 +753,20 @@ private:
 
             if (err != LOCAL_GL_NO_ERROR &&
                 !mLocalErrorScopeStack.size())
             {
                 printf_stderr("[gl:%p] %s: Generated unexpected %s error."
                               " (0x%04x)\n", this, funcName,
                               GLErrorToString(err), err);
 
-                if (mDebugFlags & DebugFlagAbortOnError)
-                    MOZ_CRASH("MOZ_GL_DEBUG_ABORT_ON_ERROR");
+                if (mDebugFlags & DebugFlagAbortOnError) {
+                    MOZ_CRASH("Unexpected error with MOZ_GL_DEBUG_ABORT_ON_ERROR. (Run"
+                              " with MOZ_GL_DEBUG_ABORT_ON_ERROR=0 to disable)");
+                }
             }
         }
     }
 
     GLContext *TrackingContext()
     {
         GLContext *tip = this;
         while (tip->mSharedContext)