MCPcopy Create free account
hub / github.com/audacity/audacity / arErrorMsg

Function arErrorMsg

lib-src/sqlite/shell.c:16203–16217  ·  view source on GitHub ↗

** Print an error message for the .ar command to stderr and return ** SQLITE_ERROR. */

Source from the content-addressed store, hash-verified

16201** SQLITE_ERROR.
16202*/
16203static int arErrorMsg(ArCommand *pAr, const char *zFmt, ...){
16204 va_list ap;
16205 char *z;
16206 va_start(ap, zFmt);
16207 z = sqlite3_vmprintf(zFmt, ap);
16208 va_end(ap);
16209 utf8_printf(stderr, "Error: %s\n", z);
16210 if( pAr->fromCmdLine ){
16211 utf8_printf(stderr, "Use \"-A\" for more help\n");
16212 }else{
16213 utf8_printf(stderr, "Use \".archive --help\" for more help\n");
16214 }
16215 sqlite3_free(z);
16216 return SQLITE_ERROR;
16217}
16218
16219/*
16220** Values for ArCommand.eCmd.

Callers 2

arProcessSwitchFunction · 0.85
arParseCommandFunction · 0.85

Calls 1

utf8_printfFunction · 0.85

Tested by

no test coverage detected