declare isLocal as const value
use signal to pass error string.