]> git.sesse.net Git - nageru/commitdiff
Add a missing hint.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Jun 2019 18:04:22 +0000 (20:04 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Jun 2019 18:04:22 +0000 (20:04 +0200)
nageru/theme.cpp

index f7f752250615323ebcc1c4f7d37c4fd8770a0006..b53c65bc3434f61aae29904c242254893a672d75 100644 (file)
@@ -1538,6 +1538,7 @@ string Theme::get_channel_name(unsigned channel)
        const char *ret = lua_tostring(L, -1);
        if (ret == nullptr) {
                fprintf(stderr, "function `channel_name' returned nil for channel %d\n", channel);
        const char *ret = lua_tostring(L, -1);
        if (ret == nullptr) {
                fprintf(stderr, "function `channel_name' returned nil for channel %d\n", channel);
+               fprintf(stderr, "Try Nageru.set_channel_name(channel, name) at the start of the script instead.\n");
                abort();
        }
 
                abort();
        }