Changeset 148 in code for trunk


Ignore:
Timestamp:
Mar 25, 2020, 1:15:25 PM (5 years ago)
Author:
contact
Message:

Error out when storing unsupported SASL mechanism in DB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/db.go

    r146 r148  
    33import (
    44        "database/sql"
     5        "fmt"
    56        "sync"
    67
     
    164165                        saslPlainUsername = toStringPtr(network.SASL.Plain.Username)
    165166                        saslPlainPassword = toStringPtr(network.SASL.Plain.Password)
     167                default:
     168                        return fmt.Errorf("soju: cannot store network: unsupported SASL mechanism %q", network.SASL.Mechanism)
    166169                }
    167170        }
Note: See TracChangeset for help on using the changeset viewer.